#include <IndirectBufferSignature.h>
Inherits AZ::RHI::DeviceObject.
Inherited by AZ::DX12::IndirectBufferSignature, and AZ::Vulkan::IndirectBufferSignature.
Public Member Functions | |
AZ_RTTI (IndirectBufferSignature, "{3A2F9DF0-589B-4E05-9205-B688EB896AEA}", Base) | |
ResultCode | Init (Device &device, const IndirectBufferSignatureDescriptor &descriptor) |
uint32_t | GetByteStride () const |
Returns the stride in bytes of the command sequence defined by the provided layout. | |
uint32_t | GetOffset (IndirectCommandIndex index) const |
const IndirectBufferSignatureDescriptor & | GetDescriptor () const |
const IndirectBufferLayout & | GetLayout () const |
void | Shutdown () final |
Clears the current bound device to null. | |
![]() | |
AZ_RTTI (DeviceObject, "{17D34F71-944C-4AF5-9823-627474C4C0A6}", Object) | |
bool | IsInitialized () const |
Returns whether the device object is initialized. | |
Device & | GetDevice () const |
![]() | |
AZ_RTTI (Object, "{E43378F1-2331-4173-94B8-990ED20E6003}") | |
void | SetName (const Name &name) |
Sets the name of the object. | |
const Name & | GetName () const |
Returns the name set on the object by SetName. | |
uint32_t | use_count () |
Returns the current use count of the object. | |
Additional Inherited Members | |
![]() | |
void | Init (Device &device) |
The derived class should call this method to assign the device. | |
void | Shutdown () override |
Clears the current bound device to null. | |
![]() | |
void | add_ref () const |
void | release () const |
![]() | |
AZStd::atomic_int | m_useCount = 0 |
The IndirectBufferSignature is an implementation object that represents the signature of the commands contained in an Indirect Buffer. Indirect Buffers hold the commands that will be used for doing Indirect Rendering.
It also exposes implementation dependent offsets for the commands in a layout. This information is useful when writing commands into a buffer.
uint32_t AZ::RHI::IndirectBufferSignature::GetOffset | ( | IndirectCommandIndex | index | ) | const |
Returns the offset of the command in the position indicated by the index.
index | The location in the layout of the command. |
ResultCode AZ::RHI::IndirectBufferSignature::Init | ( | Device & | device, |
const IndirectBufferSignatureDescriptor & | descriptor | ||
) |
Initialize an IndirectBufferSignature object.
device | The device that will contain the signature. |
descriptor | Descriptor with the necessary information for initializing the signature. |
|
finalvirtual |
Clears the current bound device to null.
Reimplemented from AZ::RHI::DeviceObject.