vkd3d-shader/glsl: Use VKD3D_SHADER_ERROR_GLSL_UNSUPPORTED for unsupported CBV descriptor arrays.

This commit is contained in:
Henri Verbeet 2024-10-05 21:05:50 +02:00
parent 845d6f9134
commit afb1a2610e
Notes: Henri Verbeet 2024-10-10 20:10:19 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1171

View File

@ -1415,7 +1415,7 @@ static void shader_glsl_generate_cbv_declaration(struct vkd3d_glsl_generator *ge
if (cbv->count != 1) if (cbv->count != 1)
{ {
vkd3d_glsl_compiler_error(gen, VKD3D_SHADER_ERROR_GLSL_BINDING_NOT_FOUND, vkd3d_glsl_compiler_error(gen, VKD3D_SHADER_ERROR_GLSL_UNSUPPORTED,
"Constant buffer %u has unsupported descriptor array size %u.", cbv->register_id, cbv->count); "Constant buffer %u has unsupported descriptor array size %u.", cbv->register_id, cbv->count);
return; return;
} }