mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/ir: Decorate vkd3d_shader_scan_error() with VKD3D_PRINTF_FUNC.
This commit is contained in:
parent
616bf93931
commit
5b82afb83f
Notes:
Alexandre Julliard
2023-11-21 22:48:39 +01:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/485
@ -645,6 +645,16 @@ struct vkd3d_shader_scan_context
|
||||
size_t combined_samplers_size;
|
||||
};
|
||||
|
||||
static VKD3D_PRINTF_FUNC(3, 4) void vkd3d_shader_scan_error(struct vkd3d_shader_scan_context *context,
|
||||
enum vkd3d_shader_error error, const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start(args, format);
|
||||
vkd3d_shader_verror(context->message_context, &context->location, error, format, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
static void vkd3d_shader_scan_context_init(struct vkd3d_shader_scan_context *context,
|
||||
const struct vkd3d_shader_version *version,
|
||||
const struct vkd3d_shader_compile_info *compile_info,
|
||||
@ -1026,16 +1036,6 @@ static void vkd3d_shader_scan_typed_resource_declaration(struct vkd3d_shader_sca
|
||||
semantic->resource_type, resource_data_type, semantic->sample_count, 0, false);
|
||||
}
|
||||
|
||||
static void vkd3d_shader_scan_error(struct vkd3d_shader_scan_context *context,
|
||||
enum vkd3d_shader_error error, const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start(args, format);
|
||||
vkd3d_shader_verror(context->message_context, &context->location, error, format, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
static int vkd3d_shader_scan_instruction(struct vkd3d_shader_scan_context *context,
|
||||
const struct vkd3d_shader_instruction *instruction)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user