vkd3d/tests/compute.shader_test
Zebediah Figura 4d17758657 tests: Always compile HLSL shaders.
Do not rely on a draw or dispatch command to do this.

This allows more efficiently testing syntax, in cases where testing the actual
shader functionality is not interesting.
2022-11-08 20:52:57 +01:00

22 lines
253 B
Plaintext

[require]
shader model >= 5.0
[uav 0]
format r32 float
size (1, 1)
0.1
[compute shader todo]
RWTexture2D<float> u;
[numthreads(1, 1, 1)]
void main()
{
u[uint2(0, 0)] = -123.0;
}
[test]
todo dispatch 1 1 1
todo probe uav 0 (0, 0) r (-123.0)