Gets the value of the specified shader user data register.
uint __XB_GetShaderUserData(
uint N
)
N
Type: uintÂ
[in] A shader user data register. Must be in the range 0-15.
The hardware only supports up to 16 shader user data inputs. Of the 16 available inputs, the first two (0 and 1) are used by the Xbox Shader ABI for Hull, Domain, Geometry, Pixel, and Compute shader stages, and the first four (0, 1, 2, and 3) are used by the Vertex Shader stage. For most usage scenarios, you will want to pick registers which do not conflict with those already in use by the Xbox Shader ABI. Registers 4-15 are a safe choice.
Type: uintÂ
Returns the value of the specified shader user data register.
This D3D compiler intrinsic is used in combination with the SetShaderUserData APIs:
This D3D compiler intrinsic is also used in combination with the multidraw Draw ID functionality enabled with the D3D11X_MULTI_DRAW_FLAG enumeration.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.