Silicon
A realtime platform for creating interactive media.
Si::Shader Class Reference

#include <Shader.hpp>

Inheritance diagram for Si::Shader:

Public Types

enum class  Type {
  Vertex , TessellationControl , TessellationEvaluation , Geometry ,
  Fragment , Compute , RTRayGen , RTAnyHit ,
  RTClosestHit , RTMiss , RTIntersection , RTCallable
}
 Represents different types of shaders. More...
 

Public Member Functions

 Shader (const std::string &, Type type)
 
 Shader (const Vector< std::uint32_t > &, Type type)
 
Type getType () const
 
virtual ~Shader ()=default
 

Protected Attributes

Type m_type
 

Detailed Description

Definition at line 40 of file Shader.hpp.

Member Enumeration Documentation

◆ Type

enum class Si::Shader::Type
strong

Represents different types of shaders.

Enumerator
Vertex 
TessellationControl 
TessellationEvaluation 
Geometry 
Fragment 
Compute 
RTRayGen 
RTAnyHit 
RTClosestHit 
RTMiss 
RTIntersection 
RTCallable 

Definition at line 46 of file Shader.hpp.

Constructor & Destructor Documentation

◆ Shader() [1/2]

Si::Shader::Shader ( const std::string ,
Type  type 
)
inline

Definition at line 61 of file Shader.hpp.

◆ Shader() [2/2]

Si::Shader::Shader ( const Vector< std::uint32_t > &  ,
Type  type 
)
inline

Definition at line 66 of file Shader.hpp.

◆ ~Shader()

virtual Si::Shader::~Shader ( )
virtualdefault

Member Function Documentation

◆ getType()

Type Si::Shader::getType ( ) const
inline

Definition at line 71 of file Shader.hpp.

Member Data Documentation

◆ m_type

Type Si::Shader::m_type
protected

Definition at line 79 of file Shader.hpp.


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