microsoft / hlsl-specs

HLSL Specifications
MIT License
116 stars 29 forks source link

Design and document unorm/snorm functionality #262

Open pow2clk opened 2 months ago

pow2clk commented 2 months ago

Is your feature request related to a problem? Please describe.

There are a number of issues that have cropped up related to unorm/snorm in DXC that we want to avoid by better design in the future.  

Describe the solution you'd like A specification that defines all the ways unorm and snorm can and can't be used and how they might behave differently from other float types. In particular how assignments between them can work and how they can be used with resources are areas that many of the above issues touch on.

Describe alternatives you've considered I think it's important to note the pitfalls that have occurred before and have a task to address the issue at large to ensure it doesn't get overlooked rather than expecting we'll do it right when the time comes.