An object used to specify work to the GPU along with references to resources the GPU will used when doing said work.
More...
|
bool | BindVertices (VertexBuffer buffer) |
| Specify the vertex and index buffer to use for this command. More...
|
|
bool | BindResource (ShaderStage stage, DescriptorType type, const ShaderUniformSlot &slot, const ShaderMetadata &metadata, BufferView view) override |
|
bool | BindResource (ShaderStage stage, DescriptorType type, const ShaderUniformSlot &slot, const std::shared_ptr< const ShaderMetadata > &metadata, BufferView view) |
|
bool | BindResource (ShaderStage stage, DescriptorType type, const SampledImageSlot &slot, const ShaderMetadata &metadata, std::shared_ptr< const Texture > texture, const std::unique_ptr< const Sampler > &sampler) override |
|
bool | IsValid () const |
|
virtual | ~ResourceBinder ()=default |
|
virtual bool | BindResource (ShaderStage stage, DescriptorType type, const ShaderUniformSlot &slot, const ShaderMetadata &metadata, BufferView view)=0 |
|
virtual bool | BindResource (ShaderStage stage, DescriptorType type, const SampledImageSlot &slot, const ShaderMetadata &metadata, std::shared_ptr< const Texture > texture, const std::unique_ptr< const Sampler > &sampler)=0 |
|
An object used to specify work to the GPU along with references to resources the GPU will used when doing said work.
To construct a valid command, follow these steps:
- Specify a valid pipeline.
- Specify vertex information via a call
BindVertices
- Specify any stage bindings.
- (Optional) Specify a debug label.
Command can be created frequently and on demand. The resources referenced in commands views into buffers managed by other allocators and resource managers.
Definition at line 92 of file command.h.