vkd3d-shader/dxil: Rename "handler_idx" to "opcode" in sm6_parser_emit_dcl_count().

This commit is contained in:
Giovanni Mascellani
2025-10-08 21:46:36 +02:00
committed by Henri Verbeet
parent 0a9fd13b25
commit 6a9147b66b
Notes: Henri Verbeet 2025-10-09 15:58:04 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1780

View File

@@ -10124,11 +10124,11 @@ static enum vkd3d_result sm6_parser_emit_thread_group(struct sm6_parser *sm6, co
return VKD3D_OK;
}
static void sm6_parser_emit_dcl_count(struct sm6_parser *sm6, enum vkd3d_shader_opcode handler_idx, unsigned int count)
static void sm6_parser_emit_dcl_count(struct sm6_parser *dxil, enum vkd3d_shader_opcode opcode, unsigned int count)
{
struct vkd3d_shader_instruction *ins;
if (!(ins = sm6_parser_add_instruction(sm6, handler_idx)))
if (!(ins = sm6_parser_add_instruction(dxil, opcode)))
return;
ins->declaration.count = count;
}