DispatchMesh

Description

Specify the number of downstream mesh shader thread groups to invoke from an amplification shader, and provide the values for per-mesh payload parameters.

Signature

void DispatchMesh<P>(
    uint threadGroupCountX,
    uint threadGroupCountY,
    uint threadGroupCountZ,
    P meshPayload);

Generic Parameters

P

Parameters

threadGroupCountX : uint

threadGroupCountY : uint

threadGroupCountZ : uint

meshPayload : P

Return value

This function doesn’t return.

Availability and Requirements

Defined for the following targets:

hlsl

Available in stages: amplification, mesh.

glsl

Available in stages: amplification, mesh.

metal

Available in stages: amplification, mesh.

spirv

Available in stages: amplification, mesh.

Requires capability: spvMeshShadingEXT.