24#ifndef PXR_IMAGING_HGI_SHADERPROGRAM_H
25#define PXR_IMAGING_HGI_SHADERPROGRAM_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/shaderFunction.h"
32#include "pxr/imaging/hgi/types.h"
37PXR_NAMESPACE_OPEN_SCOPE
56 std::string debugName;
57 HgiShaderFunctionHandleVector shaderFunctions;
61inline bool operator==(
66inline bool operator!=(
134using HgiShaderProgramHandleVector = std::vector<HgiShaderProgramHandle>;
137PXR_NAMESPACE_CLOSE_SCOPE
Represents a collection of shader functions.
virtual HGI_API bool IsValid() const =0
Returns false if any shader compile errors occured.
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.
HGI_API HgiShaderProgramDesc const & GetDescriptor() const
The descriptor describes the object.
virtual HGI_API HgiShaderFunctionHandleVector const & GetShaderFunctions() const =0
Returns the shader functions that are part of this program.
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 program.
Describes the properties needed to create a GPU shader program.