mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Use the vulkan runner to run SM1 compilation tests.
At the current moment this is a little odd because for SM1 [test] directives are skipped, and the [shader] directives are not executed by the shader_runner_vulkan.c:compile_shader() but by the general shader_runner.c:compile_shader(). So in principle it is a little weird that we go through the vulkan runner. But fret not, because in the future we plan to make the parser agnostic to the language of the tests, so we will get rid of the general shader_runner.c:compile_shader() function and instead call a runner->compile_shader() function, defined for each runner. Granted, most of these may call a generic implementation that uses native compiler in Windows, and vkd3d-shader on Linux, but it would be more conceptually correct.
This commit is contained in:
committed by
Alexandre Julliard
parent
b92f6c448a
commit
1c73513425
Notes:
Alexandre Julliard
2024-01-24 22:53:52 +01:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/514
@@ -127,7 +127,7 @@ float4 main(in apple aps[2][2]) : sv_target
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
todo(sm>=6) probe (0, 0) rgba (10.0, 10.0, 20.0, 20.0)
|
||||
probe (0, 0) rgba (10.0, 10.0, 20.0, 20.0)
|
||||
|
||||
|
||||
[pixel shader]
|
||||
@@ -275,8 +275,8 @@ float4 main(in float4 t1 : TEXCOORD0, in float4 t2 : TEXCOORD0) : sv_target
|
||||
}
|
||||
|
||||
[test]
|
||||
todo(sm>=6) draw quad
|
||||
probe (0, 0) rgba (99.0, 99.0, 10.0, 11.0)
|
||||
draw quad
|
||||
todo(sm>=6) probe (0, 0) rgba (99.0, 99.0, 10.0, 11.0)
|
||||
|
||||
|
||||
% Different indexes of the same semantic can have different types.
|
||||
|
Reference in New Issue
Block a user