mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
tests: Test a shader with many semantics.
This commit is contained in:
committed by
Henri Verbeet
parent
e7f258c622
commit
cb514ef6e0
Notes:
Henri Verbeet
2025-10-15 13:01:02 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1791
@@ -190,6 +190,7 @@ vkd3d_shader_tests = \
|
|||||||
tests/hlsl/majority-pragma.shader_test \
|
tests/hlsl/majority-pragma.shader_test \
|
||||||
tests/hlsl/majority-syntax.shader_test \
|
tests/hlsl/majority-syntax.shader_test \
|
||||||
tests/hlsl/majority-typedef.shader_test \
|
tests/hlsl/majority-typedef.shader_test \
|
||||||
|
tests/hlsl/many-semantics.shader_test \
|
||||||
tests/hlsl/math.shader_test \
|
tests/hlsl/math.shader_test \
|
||||||
tests/hlsl/matrix-indexing.shader_test \
|
tests/hlsl/matrix-indexing.shader_test \
|
||||||
tests/hlsl/matrix-semantics.shader_test \
|
tests/hlsl/matrix-semantics.shader_test \
|
||||||
|
|||||||
37
tests/hlsl/many-semantics.shader_test
Normal file
37
tests/hlsl/many-semantics.shader_test
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
[input layout]
|
||||||
|
0 r32g32-float position
|
||||||
|
0 r32-float color 0
|
||||||
|
0 r32-float color 1
|
||||||
|
0 r32-float texcoord 0
|
||||||
|
0 r32-float texcoord 1
|
||||||
|
0 r32-float texcoord 2
|
||||||
|
0 r32-float texcoord 3
|
||||||
|
0 r32-float texcoord 4
|
||||||
|
0 r32-float texcoord 5
|
||||||
|
0 r32-float texcoord 6
|
||||||
|
0 r32-float texcoord 7
|
||||||
|
|
||||||
|
[vb 0]
|
||||||
|
-1.0 -1.0 0.5 0.6 0.1 0.2 0.3 0.4 0.05 0.06 0.07 0.08
|
||||||
|
-1.0 1.0 0.5 0.6 0.1 0.2 0.3 0.4 0.05 0.06 0.07 0.08
|
||||||
|
1.0 -1.0 0.5 0.6 0.1 0.2 0.3 0.4 0.05 0.06 0.07 0.08
|
||||||
|
1.0 1.0 0.5 0.6 0.1 0.2 0.3 0.4 0.05 0.06 0.07 0.08
|
||||||
|
|
||||||
|
[vertex shader]
|
||||||
|
void main(float4 pos : position, inout float color[2] : color,
|
||||||
|
inout float texcoord[8] : texcoord, out float4 out_pos : sv_position)
|
||||||
|
{
|
||||||
|
out_pos = pos;
|
||||||
|
}
|
||||||
|
|
||||||
|
[pixel shader]
|
||||||
|
float4 main(float color[2] : color, float texcoord[8] : texcoord) : sv_target
|
||||||
|
{
|
||||||
|
return float4(texcoord[0], texcoord[1], texcoord[2], texcoord[3])
|
||||||
|
+ float4(texcoord[4], texcoord[5], texcoord[6], texcoord[7])
|
||||||
|
+ float4(color[0], color[1], 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
[test]
|
||||||
|
todo(sm<4 | msl & sm>=6) draw triangle strip 4
|
||||||
|
probe (0,0) f32(.65, .86, .37, .48) 1
|
||||||
Reference in New Issue
Block a user