mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Replace assert() with VKD3D_ASSERT() in fx.c.
This commit is contained in:
parent
7d3e8f49e4
commit
02ef731b9a
Notes:
Henri Verbeet
2024-08-01 15:24:42 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/974
@ -238,7 +238,7 @@ static uint32_t write_type(const struct hlsl_type *type, struct fx_write_context
|
||||
unsigned int elements_count;
|
||||
const char *name;
|
||||
|
||||
assert(fx->ctx->profile->major_version >= 4);
|
||||
VKD3D_ASSERT(fx->ctx->profile->major_version >= 4);
|
||||
|
||||
if (type->class == HLSL_CLASS_ARRAY)
|
||||
{
|
||||
@ -870,7 +870,7 @@ static uint32_t write_fx_2_parameter(const struct hlsl_type *type, const char *n
|
||||
const struct hlsl_struct_field *field = &type->e.record.fields[i];
|
||||
|
||||
/* Validated in check_invalid_object_fields(). */
|
||||
assert(hlsl_is_numeric_type(field->type));
|
||||
VKD3D_ASSERT(hlsl_is_numeric_type(field->type));
|
||||
write_fx_2_parameter(field->type, field->name, &field->semantic, fx);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user