HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE_ShaderStage Class Referenceabstract

#include <RE_Shader.h>

+ Inheritance diagram for RE_ShaderStage:

Public Member Functions

 RE_ShaderStage (RE_ShaderType stype, const char *name=0)
 
virtual ~RE_ShaderStage ()
 
virtual int64 getMemoryUsage (bool inclusive) const
 
const char * getName () const
 
RE_ShaderType getShaderType () const
 
const UT_StringgetFilename () const
 
void setFilename (const char *fname)
 
bool loadShader (RE_Render *r, const char *filename, UT_String *messages=nullptr, bool dump_source_on_error=true, const char *defines=nullptr, int default_code_version=RE_Shader::USE_GLSL_BASE_VERSION, int max_verts=-1, RE_ShaderLanguage lang=RE_SHADER_LANGUAGE_GLSL)
 
virtual bool setSource (RE_Render *r, const char *source_code, int version, UT_String *messages=nullptr, bool dump_source_on_error=true)=0
 
virtual bool getSource (RE_Render *r, UT_String &source)
 
void setID (int id)
 
int getID () const
 
int getCodeVersion () const
 

Protected Member Functions

void setCodeVersion (int v)
 

Detailed Description

Definition at line 1185 of file RE_Shader.h.

Constructor & Destructor Documentation

RE_ShaderStage::RE_ShaderStage ( RE_ShaderType  stype,
const char *  name = 0 
)
virtual RE_ShaderStage::~RE_ShaderStage ( )
virtual

Member Function Documentation

int RE_ShaderStage::getCodeVersion ( ) const
inline

Definition at line 1233 of file RE_Shader.h.

const UT_String& RE_ShaderStage::getFilename ( ) const
inline

Definition at line 1205 of file RE_Shader.h.

int RE_ShaderStage::getID ( ) const
inline

Definition at line 1230 of file RE_Shader.h.

virtual int64 RE_ShaderStage::getMemoryUsage ( bool  inclusive) const
inlinevirtual

Returns the amount of main memory (NOT graphics memory!) owned by this RE_ShaderStage.

Definition at line 1194 of file RE_Shader.h.

const char* RE_ShaderStage::getName ( ) const
inline

Definition at line 1202 of file RE_Shader.h.

RE_ShaderType RE_ShaderStage::getShaderType ( ) const
inline

Definition at line 1203 of file RE_Shader.h.

virtual bool RE_ShaderStage::getSource ( RE_Render r,
UT_String source 
)
virtual

Reimplemented in RV_VKShaderStage.

bool RE_ShaderStage::loadShader ( RE_Render r,
const char *  filename,
UT_String messages = nullptr,
bool  dump_source_on_error = true,
const char *  defines = nullptr,
int  default_code_version = RE_Shader::USE_GLSL_BASE_VERSION,
int  max_verts = -1,
RE_ShaderLanguage  lang = RE_SHADER_LANGUAGE_GLSL 
)
void RE_ShaderStage::setCodeVersion ( int  v)
inlineprotected

Definition at line 1235 of file RE_Shader.h.

void RE_ShaderStage::setFilename ( const char *  fname)
inline

Definition at line 1206 of file RE_Shader.h.

void RE_ShaderStage::setID ( int  id)
inline

Definition at line 1229 of file RE_Shader.h.

virtual bool RE_ShaderStage::setSource ( RE_Render r,
const char *  source_code,
int  version,
UT_String messages = nullptr,
bool  dump_source_on_error = true 
)
pure virtual

Implemented in RV_VKShaderStage.


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