mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Allocate return variables before other outputs.
point-sprite.shader_test is not technically well formed since, in SM4, the vertex output signature should be: // Output signature: // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // sv_position 0 xyzw 0 POS float xyzw // texcoord 0 xy 1 NONE float xy and the pixel input signature should be: // Input signature: // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // texcoord 0 xy 0 NONE float xy so we are not passing "texcoord" properly to the pixel shader, even on Windows.
This commit is contained in:
committed by
Henri Verbeet
parent
e0359c5299
commit
2e0cbff3a0
Notes:
Henri Verbeet
2025-06-23 20:18:28 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1578
@@ -33,16 +33,16 @@ clear rtv 0 0 0 0 0
|
||||
point-size 30.0 1.0 64.0
|
||||
point-sprite off
|
||||
draw point list 1
|
||||
probe (310, 230) rgba (1, 0, 1, 1)
|
||||
probe (330, 230) rgba (1, 0, 1, 1)
|
||||
probe (310, 250) rgba (1, 0, 1, 1)
|
||||
probe (330, 250) rgba (1, 0, 1, 1)
|
||||
todo(sm>=4 & sm<6) probe (310, 230) f32(1, 0, 1, 1)
|
||||
todo(sm>=4 & sm<6) probe (330, 230) f32(1, 0, 1, 1)
|
||||
todo(sm>=4 & sm<6) probe (310, 250) f32(1, 0, 1, 1)
|
||||
todo(sm>=4 & sm<6) probe (330, 250) f32(1, 0, 1, 1)
|
||||
|
||||
clear rtv 0 0 0 0 0
|
||||
point-size 30.0 1.0 64.0
|
||||
point-sprite on
|
||||
draw point list 1
|
||||
probe (310, 230) rgba (1, 1, 0, 1)
|
||||
probe (330, 230) rgba (0, 1, 1, 1)
|
||||
probe (310, 250) rgba (1, 0, 0, 1)
|
||||
probe (330, 250) rgba (1, 0, 1, 1)
|
||||
bug(mvk & sm>=4 & sm<6) probe (310, 230) f32(1, 1, 0, 1)
|
||||
bug(mvk & sm>=4 & sm<6) probe (330, 230) f32(0, 1, 1, 1)
|
||||
bug(mvk & sm>=4 & sm<6) probe (310, 250) f32(1, 0, 0, 1)
|
||||
bug(mvk & sm>=4 & sm<6) probe (330, 250) f32(1, 0, 1, 1)
|
||||
|
Reference in New Issue
Block a user