24 #ifndef PXR_IMAGING_HGI_SHADERFUNCTION_H
25 #define PXR_IMAGING_HGI_SHADERFUNCTION_H
28 #include "pxr/imaging/hgi/api.h"
29 #include "pxr/imaging/hgi/enums.h"
30 #include "pxr/imaging/hgi/handle.h"
31 #include "pxr/imaging/hgi/shaderFunctionDesc.h"
32 #include "pxr/imaging/hgi/types.h"
34 PXR_NAMESPACE_OPEN_SCOPE
59 virtual bool IsValid()
const = 0;
91 HgiShaderFunction() =
delete;
92 HgiShaderFunction & operator=(
const HgiShaderFunction&) =
delete;
93 HgiShaderFunction(
const HgiShaderFunction&) =
delete;
97 using HgiShaderFunctionHandleVector = std::vector<HgiShaderFunctionHandle>;
99 PXR_NAMESPACE_CLOSE_SCOPE
Represents one shader stage function (code snippet).
virtual HGI_API bool IsValid() const =0
Returns false if any shader compile errors occured.
HGI_API HgiShaderFunctionDesc const & GetDescriptor() const
The descriptor describes the object.
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.
virtual HGI_API size_t GetByteSizeOfResource() const =0
Returns the byte size of the GPU shader function.
Describes the properties needed to create a GPU shader function.
Handle that contains a hgi object and unique id.