An instance of a glsl program.
More...
#include <glslProgram.h>
|
static HDST_API HdStGLSLProgramSharedPtr | GetComputeProgram (TfToken const &shaderToken, HdStResourceRegistry *resourceRegistry) |
| Convenience method to get a shared compute shader program.
|
|
static HDST_API HdStGLSLProgramSharedPtr | GetComputeProgram (TfToken const &shaderFileName, TfToken const &shaderToken, HdStResourceRegistry *resourceRegistry) |
|
static HDST_API HdStGLSLProgramSharedPtr | GetComputeProgram (TfToken const &shaderToken, HdStResourceRegistry *resourceRegistry, PopulateDescriptorCallback populateDescriptor) |
|
static HDST_API HdStGLSLProgramSharedPtr | GetComputeProgram (TfToken const &shaderToken, std::string const &defines, HdStResourceRegistry *resourceRegistry, PopulateDescriptorCallback populateDescriptor) |
|
static HDST_API HdStGLSLProgramSharedPtr | GetComputeProgram (TfToken const &shaderFileName, TfToken const &shaderToken, std::string const &defines, HdStResourceRegistry *resourceRegistry, PopulateDescriptorCallback populateDescriptor) |
|
An instance of a glsl program.
Definition at line 45 of file glslProgram.h.
◆ ID
◆ PopulateDescriptorCallback
◆ CompileShader() [1/2]
◆ CompileShader() [2/2]
HDST_API bool CompileShader |
( |
HgiShaderStage |
stage, |
|
|
std::string const & |
source |
|
) |
| |
Compile shader source for a shader stage.
◆ GetComputeProgram()
Convenience method to get a shared compute shader program.
◆ GetProgram()
Returns HgiShaderProgramHandle for the shader program.
Definition at line 72 of file glslProgram.h.
◆ GetRole()
Returns the role of the GPU data in this resource.
Definition at line 111 of file glslProgram.h.
◆ Link()
Link the compiled shaders together.
◆ Validate()
HDST_API bool Validate |
( |
| ) |
const |
Validate if this program is a valid progam in the current context.
The documentation for this class was generated from the following file: