workgroupUniformLoad

Description

Mark a variable as being workgroup uniform.

Signature

T workgroupUniformLoad<T>(T v);

Generic Parameters

T

Parameters

v : T

The variable to mark as workgroup uniform.

Return value

The value of v.

Remarks

This intrinsic maps to workgroupUniformLoad when targeting WGSL and is a no-op on other targets. WGSL is strict on uniformity, and this intrinsic is needed to mark a variable as workgroup uniform in order