24 #ifndef PXR_IMAGING_HGIGL_SHADERPROGRAM_H
25 #define PXR_IMAGING_HGIGL_SHADERPROGRAM_H
27 #include "pxr/imaging/hgi/shaderProgram.h"
29 #include "pxr/imaging/hgiGL/api.h"
30 #include "pxr/imaging/hgiGL/shaderFunction.h"
34 PXR_NAMESPACE_OPEN_SCOPE
83 HgiGLShaderProgram() =
delete;
84 HgiGLShaderProgram & operator=(
const HgiGLShaderProgram&) =
delete;
85 HgiGLShaderProgram(
const HgiGLShaderProgram&) =
delete;
90 size_t _programByteSize;
91 uint32_t _uniformBuffer;
96 PXR_NAMESPACE_CLOSE_SCOPE
HGIGL_API uint64_t GetRawResource() const override
This function returns the handle to the Hgi backend's gpu resource, cast to a uint64_t.
HGIGL_API std::string const & GetCompileErrors() override
Returns shader compile errors.
HGIGL_API uint32_t GetProgramId() const
Returns the gl resource id of the program.
HGIGL_API bool IsValid() const override
Returns false if any shader compile errors occured.
HGIGL_API uint32_t GetUniformBuffer(size_t sizeHint)
Returns the gl resource for the uniform block of this shader program.
OpenGL implementation of HgiShaderProgram.
HGIGL_API HgiShaderFunctionHandleVector const & GetShaderFunctions() const override
Returns the shader functions that are part of this program.
HGIGL_API size_t GetByteSizeOfResource() const override
Returns the byte size of the GPU shader program.
OpenGL implementation of the Hydra Graphics Interface.
Describes the properties needed to create a GPU shader program.
Represents a collection of shader functions.