[Feature Request] WaveSize attribute support for Mesh and Amplification shaders #137
Labels
enhancement
New feature or request
Requires Shader Model
Feature requests that require DXIL and Shader Model updates
Milestone
Is your feature request related to a problem? Please describe.
Despite the fact that Mesh and Amplification shaders are very similar to compute shaders, they are not allowed to have
WaveSize
attribute. Compiling given shader as as_6_6 fails:with error:
attribute WaveSize only valid for CS.
If GPU advertises support for multiple different wave sizes, you can not force it to select wave size your shader is compatible with.
Describe the solution you'd like
WaveSize
should be valid on Mesh and Amplification shadersReasoning for supporting
WaveSize
on AS/MS is same as for CS described in HLSL Wave Size docDescribe alternatives you've considered
In case when GPU supports multiple wave sizes, your only option is to author shaders that are compatible with any of supported wave size. The drawbacks of such approach are:
WaveSize
attribute to confirm that it runs as expected on different wave sizes.The text was updated successfully, but these errors were encountered: