mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Test macro expansion in pack_matrix pragmas.
This commit is contained in:
parent
e5b40092c2
commit
1c29b45c1f
Notes:
Alexandre Julliard
2023-02-20 22:45:26 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/98
@ -19,3 +19,31 @@ uniform 8 float4 0.1 0.3 0.0 0.0
|
||||
uniform 12 float4 0.2 0.4 0.0 0.0
|
||||
draw quad
|
||||
probe all rgba (0.17, 0.39, 0.17, 0.39) 1
|
||||
|
||||
% The documentation claims these strings are subject to macro expansion.
|
||||
% They are not.
|
||||
|
||||
[pixel shader]
|
||||
|
||||
#define KEY pack_matrix
|
||||
#pragma KEY(row_major)
|
||||
#define VALUE row_major
|
||||
#pragma pack_matrix(VALUE)
|
||||
#define PRAGMA pack_matrix(row_major)
|
||||
#pragma PRAGMA
|
||||
|
||||
uniform float2x2 r;
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float4 ret;
|
||||
ret.xy = mul(r, float2(0.5, 0.6));
|
||||
ret.zw = 0.5;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[test]
|
||||
uniform 0 float4 0.1 0.2 0.0 0.0
|
||||
uniform 4 float4 0.3 0.4 0.0 0.0
|
||||
draw quad
|
||||
probe all rgba (0.23, 0.34, 0.5, 0.5) 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user