mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
tests/shader-runner: Change resource declaration syntax on shader_test files.
On shader_test files, now resources should be declared this way:
[texture n] -> [srv n]
[srv buffer n] -> [srv n]
[uav n] -> [uav n]
[uav buffer n] -> [uav n]
[vertex buffer n] -> [vb n]
[render target n] -> [rtv n]
The dimension (buffer or 2D) is now specified as an additional parameter
in the "size" directive:
For 2D resources:
size (n, m) -> size (2d, n, m)
For buffers:
size (n, 1) -> size (buffer, n)
This commit is contained in:
committed by
Alexandre Julliard
parent
4d855611b7
commit
b08be04465
Notes:
Alexandre Julliard
2024-02-19 22:59:16 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/569
@@ -2,8 +2,8 @@
|
||||
shader model >= 4.0
|
||||
|
||||
|
||||
[buffer srv 0]
|
||||
size (1, 4)
|
||||
[srv 0]
|
||||
size (buffer, 4)
|
||||
0.0 1.0 2.0 3.0
|
||||
4.0 5.0 6.0 7.0
|
||||
8.0 9.0 10.0 11.0
|
||||
@@ -44,16 +44,16 @@ todo(sm<6) draw quad
|
||||
probe all rgba (4000.0, 8.0, 9.0, 10.0)
|
||||
|
||||
|
||||
[texture 0]
|
||||
size (1, 1)
|
||||
[srv 0]
|
||||
size (2d, 1, 1)
|
||||
-1.0 -1.0 -1.0 -1.0
|
||||
|
||||
[sampler 0]
|
||||
filter linear linear linear
|
||||
address clamp clamp clamp
|
||||
|
||||
[buffer srv 1]
|
||||
size (1, 1)
|
||||
[srv 1]
|
||||
size (buffer, 1)
|
||||
1.0 2.0 3.0 4.0
|
||||
|
||||
[pixel shader todo]
|
||||
@@ -71,8 +71,8 @@ todo(sm<6) draw quad
|
||||
probe all rgba (3.0, 4.0, -1.0, -1.0)
|
||||
|
||||
|
||||
[buffer srv 0]
|
||||
size (1, 4)
|
||||
[srv 0]
|
||||
size (buffer, 4)
|
||||
0.0 1.0 2.0 3.0
|
||||
4.0 5.0 6.0 7.0
|
||||
8.0 9.0 10.0 11.0
|
||||
|
||||
Reference in New Issue
Block a user