BindingRequest allows externally allocated buffers to be bound at render time.
More...
|
| HdBindingRequest (HdBinding::Type bindingType, TfToken const &name) |
| A data binding, not backed by neither BufferArrayRange nor BufferResource. More...
|
|
| HdBindingRequest (HdBinding::Type bindingType, TfToken const &name, HdType dataType) |
| A data binding, not backed by neither BufferArrayRange nor BufferResource. More...
|
|
| HdBindingRequest (HdBinding::Type bindingType, TfToken const &name, HdBufferResourceSharedPtr const &resource) |
| A buffer resource binding. More...
|
|
| HdBindingRequest (HdBinding::Type type, TfToken const &name, HdBufferArrayRangeSharedPtr bar, bool interleave) |
| A named struct binding. More...
|
|
|
bool | IsResource () const |
| Resource bingings have a single associated Hydra resource, but no buffer array. More...
|
|
bool | IsBufferArray () const |
| A buffer array binding has several buffers bundled together and each buffer will be bound individually and exposed as independent arrays in the shader. More...
|
|
bool | IsInterleavedBufferArray () const |
| Like BufferArray binding requests, struct bindings have several buffers, however they must be allocated into a single resource and interleaved. More...
|
|
bool | IsTypeless () const |
| This binding is typelss. More...
|
|
|
TfToken const & | GetName () const |
| Returns the name of the binding point, if any; buffer arrays and structs need not be named. More...
|
|
HdBinding::Type | GetBindingType () const |
| Returns the HdBinding type of this request. More...
|
|
HdBufferResourceSharedPtr const & | GetResource () const |
| Returns the single resource associated with this binding request or null when IsResource() returns false. More...
|
|
int | GetByteOffset () const |
| Returns the resource or buffer array range offset, defaults to zero. More...
|
|
HdBufferArrayRangeSharedPtr const & | GetBar () const |
| Returns the buffer array range associated with this binding request or null when IsBufferArrqay() returns false. More...
|
|
HdType | GetDataType () const |
| Return the data type of this request. More...
|
|
|
HD_API bool | operator== (HdBindingRequest const &other) const |
|
HD_API bool | operator!= (HdBindingRequest const &other) const |
|
BindingRequest allows externally allocated buffers to be bound at render time.
The different modes of binding discussed below allow the caller a range of opt-in binding behaviors, from simply reserving a binding location so it can be managed from client code, to fully generating buffer accessor code at compile time (i.e. when using a BufferArrayRange or BufferResource).
This is a "request" because the caller makes a request before bindings are resolved. All requests are consulted and fulfilled during binding resolution.
Definition at line 123 of file binding.h.