24 #ifndef PXR_IMAGING_HD_ST_DISPATCH_BUFFER_H
25 #define PXR_IMAGING_HD_ST_DISPATCH_BUFFER_H
99 unsigned int commandNumUints);
128 return _entireResource;
136 std::vector<HdBufferArrayRangeSharedPtr>
const &,
140 void DebugDump(std::ostream &out)
const override;
168 unsigned int _commandNumUints;
177 #endif // PXR_IMAGING_HD_ST_DISPATCH_BUFFER_H
HDST_API void CopyData(std::vector< uint32_t > const &data)
Update entire buffer data.
std::shared_ptr< class HdStBufferArrayRange > HdStBufferArrayRangeSharedPtr
std::shared_ptr< class HdStDispatchBuffer > HdStDispatchBufferSharedPtr
std::shared_ptr< class HdBufferArray > HdBufferArraySharedPtr
HDST_API ~HdStDispatchBuffer() override
Destructor.
std::vector< std::pair< TfToken, HdStBufferResourceSharedPtr > > HdStBufferResourceNamedList
HDST_API bool GarbageCollect() override
Performs compaction if necessary and returns true if it becomes empty.
HdStBufferResourceSharedPtr GetEntireResource() const
Returns entire buffer as a single HdStBufferResource.
HDST_API void DebugDump(std::ostream &out) const override
Debug output.
HDST_API void Reallocate(std::vector< HdBufferArrayRangeSharedPtr > const &, HdBufferArraySharedPtr const &) override
HdStBufferArrayRangeSharedPtr GetBufferArrayRange() const
HDST_API HdStBufferResourceSharedPtr GetResource() const
GLint GLenum GLboolean GLsizei stride
HDST_API void AddBufferResourceView(TfToken const &name, HdTupleType tupleType, int offset)
Add an interleaved view to this buffer.
GLuint const GLchar * name
std::shared_ptr< class HdStBufferResource > HdStBufferResourceSharedPtr
HDST_API HdStBufferResourceSharedPtr _AddResource(TfToken const &name, HdTupleType tupleType, int offset, int stride)
Adds a new, named GPU resource and returns it.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
int GetCount() const
Returns the dispatch count.
#define PXR_NAMESPACE_CLOSE_SCOPE
HdStBufferResourceNamedList const & GetResources() const
Returns the list of all named GPU resources for this bufferArray.
unsigned int GetCommandNumUints() const
Returns the number of uints in a single draw command.
HDST_API HdStDispatchBuffer(HdStResourceRegistry *resourceRegistry, TfToken const &role, int count, unsigned int commandNumUints)
Constructor. commandNumUints is given in how many integers.