-
class
SGFXAPI::
Shader
¶ This is a single shader, of a particular type; either pixel shader, .
- See
- getHandle(const Shader& shader)
Public Functions
-
void
LoadFromString
(ShaderType type, const char *shaderData, const char *entryPoint, const char *profile)¶ Load the shader from source.
- See
- LoadFromFile()
- Parameters
shaderData
-should be a null-terminated c-string, containing the source code.
entryPoint
-must be 0
profile
-must be 0
-
void
LoadFromFile
(ShaderType type, const char *fileName, const char *entryPoint, const char *profile)¶ Load the shader from a source file.
Load the shader from source.
- See
- Parameters
shaderData
-should be a null-terminated c-string, containing the source code.
entryPoint
-must be 0
profile
-must be 0