24 #ifndef PXR_IMAGING_HGI_RESOURCEBINDINGS_H
25 #define PXR_IMAGING_HGI_RESOURCEBINDINGS_H
28 #include "pxr/imaging/hgi/api.h"
29 #include "pxr/imaging/hgi/buffer.h"
30 #include "pxr/imaging/hgi/enums.h"
31 #include "pxr/imaging/hgi/handle.h"
32 #include "pxr/imaging/hgi/sampler.h"
33 #include "pxr/imaging/hgi/texture.h"
34 #include "pxr/imaging/hgi/types.h"
40 PXR_NAMESPACE_OPEN_SCOPE
75 HgiBufferHandleVector buffers;
76 std::vector<uint32_t> offsets;
77 HgiBindResourceType resourceType;
78 uint32_t bindingIndex;
79 HgiShaderStage stageUsage;
81 using HgiBufferBindDescVector = std::vector<HgiBufferBindDesc>;
120 HgiTextureHandleVector textures;
121 HgiSamplerHandleVector samplers;
122 HgiBindResourceType resourceType;
123 uint32_t bindingIndex;
124 HgiShaderStage stageUsage;
126 using HgiTextureBindDescVector = std::vector<HgiTextureBindDesc>;
154 std::string debugName;
155 HgiBufferBindDescVector buffers;
156 HgiTextureBindDescVector textures;
193 HgiResourceBindings() =
delete;
194 HgiResourceBindings & operator=(
const HgiResourceBindings&) =
delete;
195 HgiResourceBindings(
const HgiResourceBindings&) =
delete;
199 using HgiResourceBindingsHandleVector = std::vector<HgiResourceBindingsHandle>;
202 PXR_NAMESPACE_CLOSE_SCOPE
HGI_API HgiResourceBindingsDesc const & GetDescriptor() const
The descriptor describes the object.
AR_API bool operator!=(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
AR_API bool operator==(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
Represents a collection of buffers, texture and vertex attributes that will be used by an cmds object...
Describes the binding information of a buffer (or array of buffers).
Describes the binding information of a texture (or array of textures).
Describes a set of resources that are bound to the GPU during encoding.