7 #ifndef PXR_IMAGING_HGI_SHADERPROGRAM_H 8 #define PXR_IMAGING_HGI_SHADERPROGRAM_H 11 #include "pxr/imaging/hgi/api.h" 12 #include "pxr/imaging/hgi/enums.h" 13 #include "pxr/imaging/hgi/handle.h" 14 #include "pxr/imaging/hgi/shaderFunction.h" 15 #include "pxr/imaging/hgi/types.h" 20 PXR_NAMESPACE_OPEN_SCOPE
39 std::string debugName;
40 HgiShaderFunctionHandleVector shaderFunctions;
75 virtual bool IsValid()
const = 0;
117 using HgiShaderProgramHandleVector = std::vector<HgiShaderProgramHandle>;
120 PXR_NAMESPACE_CLOSE_SCOPE
virtual HGI_API size_t GetByteSizeOfResource() const =0
Returns the byte size of the GPU shader program.
AR_API bool operator!=(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
virtual HGI_API HgiShaderFunctionHandleVector const & GetShaderFunctions() const =0
Returns the shader functions that are part of this program.
AR_API bool operator==(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
virtual HGI_API uint64_t GetRawResource() const =0
This function returns the handle to the Hgi backend's gpu resource, cast to a uint64_t.
virtual HGI_API std::string const & GetCompileErrors()=0
Returns shader compile errors.
Describes the properties needed to create a GPU shader program.
Represents a collection of shader functions.
virtual HGI_API bool IsValid() const =0
Returns false if any shader compile errors occured.
HGI_API HgiShaderProgramDesc const & GetDescriptor() const
The descriptor describes the object.