mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/fx: Remove an unnecessary hlsl_is_numeric_type().
Constants can only be numeric.
This commit is contained in:
parent
a595b96f62
commit
5883e01032
Notes:
Henri Verbeet
2024-10-28 18:14:14 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1227
@ -1567,8 +1567,6 @@ static uint32_t write_fx_4_state_numeric_value(struct hlsl_ir_constant *value, s
|
|||||||
offset = put_u32_unaligned(buffer, count);
|
offset = put_u32_unaligned(buffer, count);
|
||||||
|
|
||||||
for (i = 0; i < count; ++i)
|
for (i = 0; i < count; ++i)
|
||||||
{
|
|
||||||
if (hlsl_is_numeric_type(data_type))
|
|
||||||
{
|
{
|
||||||
switch (data_type->e.numeric.type)
|
switch (data_type->e.numeric.type)
|
||||||
{
|
{
|
||||||
@ -1582,7 +1580,6 @@ static uint32_t write_fx_4_state_numeric_value(struct hlsl_ir_constant *value, s
|
|||||||
type = 0;
|
type = 0;
|
||||||
hlsl_fixme(ctx, &ctx->location, "Unsupported numeric state value type %u.", data_type->e.numeric.type);
|
hlsl_fixme(ctx, &ctx->location, "Unsupported numeric state value type %u.", data_type->e.numeric.type);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
put_u32_unaligned(buffer, type);
|
put_u32_unaligned(buffer, type);
|
||||||
put_u32_unaligned(buffer, value->value.u[i].u);
|
put_u32_unaligned(buffer, value->value.u[i].u);
|
||||||
|
Loading…
Reference in New Issue
Block a user