vkd3d-shader/hlsl: Return a uint1 from GetRenderTargetSampleCount().

This commit is contained in:
Elizabeth Figura
2025-05-06 17:20:22 -05:00
committed by Henri Verbeet
parent 4cdea712d0
commit 4a5411aa6e
Notes: Henri Verbeet 2025-05-12 15:43:59 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1487
2 changed files with 2 additions and 2 deletions

View File

@@ -4932,7 +4932,7 @@ static bool intrinsic_GetRenderTargetSampleCount(struct hlsl_ctx *ctx,
"GetRenderTargetSampleCount() can only be used from a pixel shader using version 4.1 or higher.");
hlsl_block_add_expr(ctx, params->instrs, HLSL_OP0_RASTERIZER_SAMPLE_COUNT,
operands, hlsl_get_scalar_type(ctx, HLSL_TYPE_UINT), loc);
operands, hlsl_get_vector_type(ctx, HLSL_TYPE_UINT, 1), loc);
return true;
}

View File

@@ -18,7 +18,7 @@ probe (0, 0) rgba (4.0, 0.0, 0.0, 0.0)
% Curiously GetRenderTargetSampleCount() returns a uint1, not a uint.
% In sm6 it is altered to return a uint.
[pixel shader fail(sm>=6) todo]
[pixel shader fail(sm>=6)]
float4 main() : sv_target
{
return GetRenderTargetSampleCount()[0];