vkd3d/tests/hlsl/unorm-snorm.shader_test
Nikolay Sivov fb2b974466 vkd3d-shader/hlsl: Handle snorm/unorm types as resource formats.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2024-10-22 19:14:51 +02:00

44 lines
473 B
Plaintext

[require]
shader model >= 5.0
[pixel shader fail todo]
unorm uint4 var;
float4 main() : sv_target
{
return 0;
}
[pixel shader fail]
float4 unorm;
float4 main() : sv_target
{
return 0;
}
[pixel shader fail]
float4 snorm;
float4 main() : sv_target
{
return 0;
}
[pixel shader]
unorm float var;
float4 main() : sv_target
{
return var;
}
[pixel shader]
RWTexture2D<unorm float> u;
float4 main() : sv_target
{
u[uint2(0, 0)] = 0.7;
return 0;
}