vkd3d-shader/hlsl: Parse sampler_state.

This commit is contained in:
Francisco Casas
2024-08-26 16:43:20 -04:00
committed by Henri Verbeet
parent f47d523e0b
commit caa2a9d314
Notes: Henri Verbeet 2024-10-02 22:37:40 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1112
7 changed files with 201 additions and 34 deletions

View File

@@ -2,7 +2,7 @@
options: backcompat
[pixel shader todo fail(sm>=6)]
[pixel shader fail(sm>=6)]
sampler2D sam = sampler_state
{
texture = NULL;
@@ -54,7 +54,7 @@ float4 main(): sv_target
}
[pixel shader todo fail(sm>=6)]
[pixel shader fail(sm>=6)]
sampler sam[2] =
{
sampler_state
@@ -88,7 +88,7 @@ sampler sam[2] =
float4 main(): sv_target { return 0; }
[pixel shader todo]
[pixel shader]
sampler sam
{
FOO = sampler_state {};
@@ -106,7 +106,7 @@ float4 main(): sv_target
}
[pixel shader todo fail(sm>=6)]
[pixel shader fail(sm>=6)]
sampler sam = sampler_state
{
texture = NULL;
@@ -121,7 +121,7 @@ float4 main(): sv_target
}
[pixel shader todo fail(sm>=6)]
[pixel shader fail(sm>=6)]
sampler sam = sampler_state
{
foo = BAR;
@@ -135,7 +135,7 @@ float4 main(): sv_target
}
[pixel shader todo fail(sm>=6)]
[pixel shader fail(sm>=6)]
// default value initializers make it more permissive but if types don't match
// then the whole initializer is discarded.
float4 f = {
@@ -208,7 +208,7 @@ float4 main(): sv_target
shader model >= 5.0
options: backcompat
[pixel shader todo fail(sm>=6)]
[pixel shader fail(sm>=6)]
// Default values and sample_state work.
// Requires sm5.