Skip to content
Snippets Groups Projects
Commit 827a359b authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard
Browse files

vkd3d-shader/hlsl: Handle uppercase regset names in packoffset().

parent 0cea4d35
No related branches found
No related tags found
1 merge request!162vkd3d-shader/hlsl: Handle regset names in register() and packoffset() as case-insensitive.
Pipeline #9787 skipped
......@@ -1035,7 +1035,7 @@ static struct hlsl_reg_reservation parse_packoffset(struct hlsl_ctx *ctx, const
return reservation;
}
reservation.offset_type = reg_string[0];
reservation.offset_type = ascii_tolower(reg_string[0]);
if (reservation.offset_type != 'c')
{
hlsl_error(ctx, loc, VKD3D_SHADER_ERROR_HLSL_INVALID_RESERVATION,
......
......@@ -156,7 +156,7 @@ float4 main() : sv_target
cbuffer buffer
{
float4 a : packoffset(c1);
float4 b : packoffset(c2);
float4 b : packoffset(C2);
}
float4 main() : sv_target
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment