vkd3d-shader/dxil: Emit the shader instructions.

Sufficient for compiling a no-op pixel shader.
This commit is contained in:
Conor McCarthy
2023-05-22 16:21:46 +10:00
committed by Alexandre Julliard
parent f26d47585f
commit 3e553aaaa7
Notes: Alexandre Julliard 2023-07-20 22:57:52 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/278
3 changed files with 50 additions and 1 deletions

View File

@@ -247,7 +247,7 @@ static void shader_register_init(struct vkd3d_shader_register *reg, enum vkd3d_s
reg->immconst_type = VKD3D_IMMCONST_SCALAR;
}
static void shader_instruction_init(struct vkd3d_shader_instruction *ins, enum vkd3d_shader_opcode handler_idx)
void shader_instruction_init(struct vkd3d_shader_instruction *ins, enum vkd3d_shader_opcode handler_idx)
{
memset(ins, 0, sizeof(*ins));
ins->handler_idx = handler_idx;