HLSL: Accept unorm and snorm on types
This is currently parsed and ignored, save for some minor validation.
This commit is contained in:
parent
c9e6740503
commit
fa39cffd6a
4 changed files with 250 additions and 0 deletions
15
Test/hlsl.snorm.uav.comp
Normal file
15
Test/hlsl.snorm.uav.comp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
unorm float4 uf4;
|
||||
|
||||
Texture3D<unorm float4> ResultInU: register(t0);
|
||||
RWTexture3D<unorm float4> ResultOutU: register(u0);
|
||||
|
||||
Texture3D<snorm float4> ResultInS: register(t1);
|
||||
RWTexture3D<snorm float4> ResultOutS: register(u1);
|
||||
|
||||
[numthreads(16, 16, 1)]
|
||||
void main(uint3 tid: SV_DispatchThreadID)
|
||||
{
|
||||
ResultOutS[tid] = ResultInS[tid] + uf4;
|
||||
ResultOutU[tid] = ResultInU[tid];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue