mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
tests: Test SM1 constant register allocation with a row_major matrix.
Co-authored-by: Francisco Casas <fcasas@codeweavers.com>
This commit is contained in:
parent
7debe25a8b
commit
9dcb74341f
Notes:
Alexandre Julliard
2024-05-13 22:57:39 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Elizabeth Figura (@zfigura) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/851
@ -225,3 +225,32 @@ uniform 24 float4 61 62 63 64
|
||||
uniform 28 float4 71 72 73 74
|
||||
draw quad
|
||||
todo probe all rgba (74, 31, 63, 0)
|
||||
|
||||
|
||||
[pixel shader]
|
||||
typedef float2x2 matrix_t;
|
||||
typedef row_major matrix_t row_matrix_t;
|
||||
typedef column_major matrix_t col_matrix_t;
|
||||
uniform row_matrix_t m1;
|
||||
uniform col_matrix_t m2;
|
||||
float4 main() : COLOR
|
||||
{
|
||||
float4 ret;
|
||||
ret.xy = m1[0];
|
||||
ret.zw = m2[0];
|
||||
return ret;
|
||||
}
|
||||
// Registers:
|
||||
//
|
||||
// Name Reg Size
|
||||
// ------------ ----- ----
|
||||
// m2 c0 2
|
||||
// m1 c2 1
|
||||
//
|
||||
|
||||
[test]
|
||||
uniform 0 float4 1 2 3 4
|
||||
uniform 4 float4 11 12 13 14
|
||||
uniform 8 float4 21 22 23 24
|
||||
draw quad
|
||||
todo probe all rgba (21, 22, 1, 11)
|
||||
|
Loading…
Reference in New Issue
Block a user