7#ifndef PXR_IMAGING_HGI_RESOURCEBINDINGS_H
8#define PXR_IMAGING_HGI_RESOURCEBINDINGS_H
11#include "pxr/imaging/hgi/api.h"
12#include "pxr/imaging/hgi/buffer.h"
13#include "pxr/imaging/hgi/enums.h"
14#include "pxr/imaging/hgi/handle.h"
15#include "pxr/imaging/hgi/sampler.h"
16#include "pxr/imaging/hgi/texture.h"
17#include "pxr/imaging/hgi/types.h"
23PXR_NAMESPACE_OPEN_SCOPE
67 HgiBufferHandleVector buffers;
68 std::vector<uint32_t> offsets;
69 std::vector<uint32_t> sizes;
70 HgiBindResourceType resourceType;
71 uint32_t bindingIndex;
72 HgiShaderStage stageUsage;
75using HgiBufferBindDescVector = std::vector<HgiBufferBindDesc>;
116 HgiTextureHandleVector textures;
117 HgiSamplerHandleVector samplers;
118 HgiBindResourceType resourceType;
119 uint32_t bindingIndex;
120 HgiShaderStage stageUsage;
123using HgiTextureBindDescVector = std::vector<HgiTextureBindDesc>;
151 std::string debugName;
152 HgiBufferBindDescVector buffers;
153 HgiTextureBindDescVector textures;
196using HgiResourceBindingsHandleVector = std::vector<HgiResourceBindingsHandle>;
218 , byteOffset(byteOffset)
228using HgiVertexBufferBindingVector = std::vector<HgiVertexBufferBinding>;
231PXR_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.