mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d-shader: Translate dcl_resource_raw instructions.
This commit is contained in:
@ -3078,6 +3078,13 @@ static void vkd3d_dxbc_compiler_emit_dcl_resource(struct vkd3d_dxbc_compiler *co
|
|||||||
semantic->resource_type, semantic->resource_data_type);
|
semantic->resource_type, semantic->resource_data_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void vkd3d_dxbc_compiler_emit_dcl_resource_raw(struct vkd3d_dxbc_compiler *compiler,
|
||||||
|
const struct vkd3d_shader_instruction *instruction)
|
||||||
|
{
|
||||||
|
vkd3d_dxbc_compiler_emit_resource_declaration(compiler, &instruction->declaration.dst.reg,
|
||||||
|
VKD3D_SHADER_RESOURCE_BUFFER, VKD3D_DATA_UINT);
|
||||||
|
}
|
||||||
|
|
||||||
static void vkd3d_dxbc_compiler_emit_dcl_uav_raw(struct vkd3d_dxbc_compiler *compiler,
|
static void vkd3d_dxbc_compiler_emit_dcl_uav_raw(struct vkd3d_dxbc_compiler *compiler,
|
||||||
const struct vkd3d_shader_instruction *instruction)
|
const struct vkd3d_shader_instruction *instruction)
|
||||||
{
|
{
|
||||||
@ -4543,6 +4550,9 @@ void vkd3d_dxbc_compiler_handle_instruction(struct vkd3d_dxbc_compiler *compiler
|
|||||||
case VKD3DSIH_DCL:
|
case VKD3DSIH_DCL:
|
||||||
vkd3d_dxbc_compiler_emit_dcl_resource(compiler, instruction);
|
vkd3d_dxbc_compiler_emit_dcl_resource(compiler, instruction);
|
||||||
break;
|
break;
|
||||||
|
case VKD3DSIH_DCL_RESOURCE_RAW:
|
||||||
|
vkd3d_dxbc_compiler_emit_dcl_resource_raw(compiler, instruction);
|
||||||
|
break;
|
||||||
case VKD3DSIH_DCL_UAV_RAW:
|
case VKD3DSIH_DCL_UAV_RAW:
|
||||||
vkd3d_dxbc_compiler_emit_dcl_uav_raw(compiler, instruction);
|
vkd3d_dxbc_compiler_emit_dcl_uav_raw(compiler, instruction);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user