SPIR-V Built-In

CoalescedInputCountAMDX

Number of inputs coalesced for a coalescing node in a work graph
CoalescedInputCountAMDX

Decorating a variable with the CoalescedInputCountAMDX built-in decoration will make that variable contain the number of node dispatches that the implementation coalesced into the input for the current shader. This variable will take a value in the range [1, arraySize), where arraySize is the maximum size of the input payload array for the shader.

Valid Usage

VUID-CoalescedInputCountAMDX-CoalescedInputCountAMDX-09172

The variable decorated with CoalescedInputCountAMDX must be declared using the Input Storage Class

VUID-CoalescedInputCountAMDX-CoalescedInputCountAMDX-09173

If a variable is decorated with CoalescedInputCountAMDX, the CoalescingAMDX execution mode must be declared

VUID-CoalescedInputCountAMDX-CoalescedInputCountAMDX-09174

The variable decorated with CoalescedInputCountAMDX must be declared as a scalar 32-bit integer value