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

This commit is contained in:
Giovanni Mascellani
2025-10-08 21:46:46 +02:00
committed by Henri Verbeet
parent 6a9147b66b
commit 781bb10ed0
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

@@ -10133,13 +10133,13 @@ static void sm6_parser_emit_dcl_count(struct sm6_parser *dxil, enum vkd3d_shader
ins->declaration.count = count;
}
static void sm6_parser_emit_dcl_primitive_topology(struct sm6_parser *sm6,
enum vkd3d_shader_opcode handler_idx, enum vkd3d_primitive_type primitive_type,
static void sm6_parser_emit_dcl_primitive_topology(struct sm6_parser *dxil,
enum vkd3d_shader_opcode opcode, enum vkd3d_primitive_type primitive_type,
unsigned int patch_vertex_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.primitive_type.type = primitive_type;
ins->declaration.primitive_type.patch_vertex_count = patch_vertex_count;