Kanzi 4.1.0
kanzi::gfx::BindRenderResourceSetCommand Struct Reference

Binds the resource sets within the current render pipeline. More...

#include <kanzi/gfx/commands.hpp>

Inheritance diagram for kanzi::gfx::BindRenderResourceSetCommand:
[legend]

Public Member Functions

 BindRenderResourceSetCommand ()
 Constructor.
 
- Public Member Functions inherited from kanzi::gfx::BaseCommand
uint32_t getSize () const
 Gets the command size in bytes.
 
uint8_t getTag () const
 Gets the command tag.
 
CommandType getType () const
 Gets the command type.
 
void setTag (uint8_t tag)
 Sets the command tag.
 

Public Attributes

array< optional< RenderResourceSetHandleGuard >, limits::MaxResourceSetsresources
 Resource sets that are used by the render pipeline.
 

Additional Inherited Members

- Protected Member Functions inherited from kanzi::gfx::BaseCommand
 BaseCommand (CommandType t, uint32_t s)
 Constructor.
 
 BaseCommand (const BaseCommand &other)
 Copy Constructor.
 
BaseCommandoperator= (const BaseCommand &other)
 Assignment operator.
 

Detailed Description

Binds the resource sets within the current render pipeline.

Previous uniform and storage offset commands are applied.

Each element of the resources array corresponds to a descriptor set slot:

  • nullopt: Preserve the existing binding in this slot (no change).
  • Invalid handle: Clear the binding in this slot.
  • Valid handle: Set the binding in this slot.
Since
Kanzi 4.0.0

Constructor & Destructor Documentation

◆ BindRenderResourceSetCommand()

kanzi::gfx::BindRenderResourceSetCommand::BindRenderResourceSetCommand ( )
inlineexplicit

Constructor.

Member Data Documentation

◆ resources

array<optional<RenderResourceSetHandleGuard>, limits::MaxResourceSets> kanzi::gfx::BindRenderResourceSetCommand::resources

Resource sets that are used by the render pipeline.

Resource sets must be compatible with the shaders used in the active render pipeline.

Since
Kanzi 4.1.0 changed from FixedArray<RenderResourceSetHandleGuard, MaxResourceSets> to array<optional<...>, MaxResourceSets>.

The documentation for this struct was generated from the following file: