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 dxbc.c.
This commit is contained in:
parent
bcffcb4a29
commit
4094e5dbeb
Notes:
Henri Verbeet
2024-07-30 16:38:27 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/970
@ -29,7 +29,7 @@ void dxbc_writer_add_section(struct dxbc_writer *dxbc, uint32_t tag, const void
|
|||||||
{
|
{
|
||||||
struct vkd3d_shader_dxbc_section_desc *section;
|
struct vkd3d_shader_dxbc_section_desc *section;
|
||||||
|
|
||||||
assert(dxbc->section_count < ARRAY_SIZE(dxbc->sections));
|
VKD3D_ASSERT(dxbc->section_count < ARRAY_SIZE(dxbc->sections));
|
||||||
|
|
||||||
section = &dxbc->sections[dxbc->section_count++];
|
section = &dxbc->sections[dxbc->section_count++];
|
||||||
section->tag = tag;
|
section->tag = tag;
|
||||||
@ -983,7 +983,7 @@ static int shader_parse_root_signature(const struct vkd3d_shader_code *data,
|
|||||||
{
|
{
|
||||||
struct vkd3d_shader_root_signature_desc1 *v_1_1 = &desc->u.v_1_1;
|
struct vkd3d_shader_root_signature_desc1 *v_1_1 = &desc->u.v_1_1;
|
||||||
|
|
||||||
assert(version == VKD3D_SHADER_ROOT_SIGNATURE_VERSION_1_1);
|
VKD3D_ASSERT(version == VKD3D_SHADER_ROOT_SIGNATURE_VERSION_1_1);
|
||||||
|
|
||||||
v_1_1->parameter_count = count;
|
v_1_1->parameter_count = count;
|
||||||
if (v_1_1->parameter_count)
|
if (v_1_1->parameter_count)
|
||||||
@ -1777,7 +1777,7 @@ int vkd3d_shader_convert_root_signature(struct vkd3d_shader_versioned_root_signa
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
assert(version == VKD3D_SHADER_ROOT_SIGNATURE_VERSION_1_1);
|
VKD3D_ASSERT(version == VKD3D_SHADER_ROOT_SIGNATURE_VERSION_1_1);
|
||||||
ret = convert_root_signature_to_v1_1(dst, src);
|
ret = convert_root_signature_to_v1_1(dst, src);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user