mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
tests: Add more register reservations tests.
This commit is contained in:
Notes:
Henri Verbeet
2024-07-08 18:04:49 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/792
@@ -259,3 +259,33 @@ float4 main() : sv_target
|
||||
[test]
|
||||
todo(sm<6) draw quad
|
||||
probe (0, 0) rgba (1, 1, 1, 99)
|
||||
|
||||
% Bracket exprs should still parse correctly.
|
||||
|
||||
[pixel shader todo]
|
||||
Texture2D tex1 : register(ps, t[1]);
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return tex1.Load(int3(0, 0, 0));
|
||||
}
|
||||
|
||||
[test]
|
||||
todo(sm<6) draw quad
|
||||
if(sm>=6) probe (0, 0) rgba(0, 0, 0, 99)
|
||||
if(sm<6) probe (0, 0) rgba(1, 1, 1, 99)
|
||||
|
||||
% This works, though the bind point is ignored.
|
||||
|
||||
[pixel shader fail(sm>=6) todo(sm<6)]
|
||||
float a : register(ps[5], c1);
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return a;
|
||||
}
|
||||
|
||||
[test]
|
||||
uniform 0 float 1.0
|
||||
todo draw quad
|
||||
probe (0, 0) rgba(1.0, 1.0, 1.0, 1.0)
|
||||
|
||||
Reference in New Issue
Block a user