tests: Add signature reflection test with structs.

This commit is contained in:
Francisco Casas
2024-10-19 03:24:34 -03:00
committed by Henri Verbeet
parent fb2b974466
commit d9b631182e
Notes: Henri Verbeet 2024-10-22 20:54:15 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1193
2 changed files with 23 additions and 1 deletions

View File

@@ -30,7 +30,8 @@ shader model < 6.0
// 1. Arrays always start on .x
// 2. When placing a scalar or vector, search through the allocated slots for space *vertically*
// (So check if you can place at o1.y, then o2.y, o3.y before o1.z, o2.z, etc.)
// 3. Elements with different interpolation cannot share a slot
// 3. Elements with different interpolation cannot share a slot.
// 4. The first field of a struct is always aligned.
struct data
{
float4 position : SV_Position; // Should be placed in o0