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"
40PXR_NAMESPACE_OPEN_SCOPE
84 HgiBufferHandleVector buffers;
85 std::vector<uint32_t> offsets;
86 std::vector<uint32_t> sizes;
87 HgiBindResourceType resourceType;
88 uint32_t bindingIndex;
89 HgiShaderStage stageUsage;
92using HgiBufferBindDescVector = std::vector<HgiBufferBindDesc>;
100inline bool operator!=(
133 HgiTextureHandleVector textures;
134 HgiSamplerHandleVector samplers;
135 HgiBindResourceType resourceType;
136 uint32_t bindingIndex;
137 HgiShaderStage stageUsage;
140using HgiTextureBindDescVector = std::vector<HgiTextureBindDesc>;
168 std::string debugName;
169 HgiBufferBindDescVector buffers;
170 HgiTextureBindDescVector textures;
213using HgiResourceBindingsHandleVector = std::vector<HgiResourceBindingsHandle>;
235 , byteOffset(byteOffset)
245using HgiVertexBufferBindingVector = std::vector<HgiVertexBufferBinding>;
248PXR_NAMESPACE_CLOSE_SCOPE
Represents a collection of buffers, texture and vertex attributes that will be used by an cmds object...
HGI_API HgiResourceBindingsDesc const & GetDescriptor() const
The descriptor describes the object.
Describes the binding information of a buffer (or array of buffers).
Describes a set of resources that are bound to the GPU during encoding.
Describes the binding information of a texture (or array of textures).
Describes a buffer to be bound during encoding.