PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::Shader Class Reference

#include <Shader.h>

Inheritance diagram for dyno::Shader:
Collaboration diagram for dyno::Shader:

Public Member Functions

bool createFromFile (unsigned int type, const std::string &path)
 
bool createFromSource (unsigned int type, const std::string &src)
 
bool createFromSPIRV (unsigned int type, const void *spirv, const size_t len)
 
void release ()
 
- Public Member Functions inherited from dyno::Object
 Object ()
 
virtual ~Object ()
 
ObjectId objectId ()
 

Protected Member Functions

void create ()
 
- Protected Member Functions inherited from dyno::GraphicsObject
virtual bool isValid () const
 
 GraphicsObject ()=default
 
virtual ~GraphicsObject ()=default
 
 GraphicsObject (const GraphicsObject &)=delete
 
GraphicsObjectoperator= (const GraphicsObject &)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from dyno::Object
static bool registerClass (ClassInfo *ci)
 
static ObjectcreateObject (std::string name)
 
static std::map< std::string, ClassInfo * > * getClassMap ()
 
static ObjectId baseId ()
 Base Id.
 
- Public Attributes inherited from dyno::GraphicsObject
unsigned int id = 0xFFFFFFFF
 

Detailed Description

Definition at line 28 of file Shader.h.

Member Function Documentation

◆ create()

void dyno::Shader::create ( )
inlineprotectedvirtual

Implements dyno::GraphicsObject.

Definition at line 38 of file Shader.h.

◆ createFromFile()

bool dyno::Shader::createFromFile ( unsigned int type,
const std::string & path )

Definition at line 60 of file Shader.cpp.

Here is the call graph for this function:

◆ createFromSource()

bool dyno::Shader::createFromSource ( unsigned int type,
const std::string & src )

Definition at line 8 of file Shader.cpp.

Here is the caller graph for this function:

◆ createFromSPIRV()

bool dyno::Shader::createFromSPIRV ( unsigned int type,
const void * spirv,
const size_t len )

Definition at line 35 of file Shader.cpp.

Here is the caller graph for this function:

◆ release()

void dyno::Shader::release ( )
virtual

Implements dyno::GraphicsObject.

Definition at line 75 of file Shader.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: