vkd3d-shader/fx: Add support for writing DepthStencilState objects.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov
2024-06-10 13:05:13 +02:00
committed by Henri Verbeet
parent 1008c49ce6
commit 12947aa50d
Notes: Henri Verbeet 2024-07-08 18:20:04 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/913
9 changed files with 139 additions and 19 deletions

View File

@@ -70,7 +70,7 @@ technique10
// Without initializer
technique10 < int a; > {}
[effect fail]
[effect fail todo]
// Only numeric types and strings are allowed
technique10 < DepthStencilState ds = { 0 }; > {}

View File

@@ -525,7 +525,7 @@ float4 main() : sv_target { return 0; }
% State blocks are valid for DepthStencilState
[pixel shader todo]
[pixel shader]
DepthStencilState dss1
{
DepthEnable = false;
@@ -583,7 +583,7 @@ DepthStencilState dss1
% Undefined identifiers can be swizzled with .x which proves that they are considered scalar
[pixel shader todo]
[pixel shader]
float4 main() : sv_target { return 0; }
DepthStencilState dss1
@@ -601,7 +601,7 @@ DepthStencilState dss1
% The type of previously defined variables is respected, but array indexes are not checked.
[pixel shader todo]
[pixel shader]
float4 arr[3];
float4 main() : sv_target { return 0; }