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

Describes dispatch command arguments. More...

#include <DeviceContext.h>

Public Member Functions

constexpr DispatchComputeAttribs (Uint32 GroupsX, Uint32 GroupsY, Uint32 GroupsZ=1) noexcept
 Initializes the structure with user-specified values.
 

Public Attributes

Uint32 ThreadGroupCountX = 1
 The number of groups dispatched in X direction.
 
Uint32 ThreadGroupCountY = 1
 The number of groups dispatched in Y direction.
 
Uint32 ThreadGroupCountZ = 1
 The number of groups dispatched in Z direction.
 
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::DispatchCompute().

Member Data Documentation

◆ MtlThreadGroupSizeX

Uint32 Diligent::DispatchComputeAttribs::MtlThreadGroupSizeX = 0

Compute group X size.

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

◆ MtlThreadGroupSizeY

Uint32 Diligent::DispatchComputeAttribs::MtlThreadGroupSizeY = 0

Compute group Y size.

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

◆ MtlThreadGroupSizeZ

Uint32 Diligent::DispatchComputeAttribs::MtlThreadGroupSizeZ = 0

Compute group Z size.

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