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

@@ -976,6 +976,8 @@ struct vkd3d_shader_instruction
} declaration;
};
void shader_instruction_init(struct vkd3d_shader_instruction *ins, enum vkd3d_shader_opcode handler_idx);
static inline bool vkd3d_shader_instruction_has_texel_offset(const struct vkd3d_shader_instruction *ins)
{
return ins->texel_offset.u || ins->texel_offset.v || ins->texel_offset.w;