Skip to content
Snippets Groups Projects
Commit 7fd10bb6 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard
Browse files

tests: Add some tests for a 'const' modifier.

parent 240b9424
Branches
Tags
1 merge request!302vkd3d-shader/hlsl: Allow 'const' modifier without initializer in the global scope.
......@@ -74,6 +74,7 @@ vkd3d_shader_tests = \
tests/hlsl/comma.shader_test \
tests/hlsl/compute.shader_test \
tests/hlsl/conditional.shader_test \
tests/hlsl/const.shader_test \
tests/hlsl/cross.shader_test \
tests/hlsl/d3dcolor-to-ubyte4.shader_test \
tests/hlsl/ddxddy.shader_test \
......
[pixel shader todo]
const float4 f1;
const uniform float4 f2;
float4 main() : sv_target
{
return f1 + f2;
}
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 0.1 0.2 0.3 0.4
todo draw quad
todo probe all rgba (1.1, 2.2, 3.3, 4.4)
[pixel shader fail]
float4 main() : sv_target
{
const float f;
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment