Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::DispatchComputeIndirectAttribs Struct Reference

Describes dispatch command arguments. More...

#include <DeviceContext.h>

Public Member Functions

constexpr DispatchComputeIndirectAttribs (IBuffer *_pAttribsBuffer, RESOURCE_STATE_TRANSITION_MODE _StateTransitionMode, Uint64 _Offset=0)
 Initializes the structure with user-specified values.
 

Public Attributes

IBufferpAttribsBuffer = nullptr
 A pointer to the buffer containing indirect dispatch attributes.
 
RESOURCE_STATE_TRANSITION_MODE AttribsBufferStateTransitionMode = RESOURCE_STATE_TRANSITION_MODE_NONE
 State transition mode for indirect dispatch attributes buffer.
 
Uint64 DispatchArgsByteOffset = 0
 The offset from the beginning of the buffer to the dispatch command arguments.
 
Uint32 MtlThreadGroupSizeX = 0
 Compute group X size.
 
Uint32 MtlThreadGroupSizeY = 0
 Compute group Y size.
 
Uint32 MtlThreadGroupSizeZ = 0
 Compute group Z size.
 

Detailed Description

Describes dispatch command arguments.

This structure is used by IDeviceContext::DispatchComputeIndirect().

Member Data Documentation

◆ MtlThreadGroupSizeX

Uint32 Diligent::DispatchComputeIndirectAttribs::MtlThreadGroupSizeX = 0

Compute group X size.

Remarks
This member is only used by Metal backend and is ignored by others.

◆ MtlThreadGroupSizeY

Uint32 Diligent::DispatchComputeIndirectAttribs::MtlThreadGroupSizeY = 0

Compute group Y size.

Remarks
This member is only used by Metal backend and is ignored by others.

◆ MtlThreadGroupSizeZ

Uint32 Diligent::DispatchComputeIndirectAttribs::MtlThreadGroupSizeZ = 0

Compute group Z size.

Remarks
This member is only used by Metal backend and is ignored by others.

◆ pAttribsBuffer

IBuffer* Diligent::DispatchComputeIndirectAttribs::pAttribsBuffer = nullptr

A pointer to the buffer containing indirect dispatch attributes.

The buffer must contain the following arguments at the specified offset:

Uint32 ThreadGroupCountX;
Uint32 ThreadGroupCountY;
Uint32 ThreadGroupCountZ;