mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Do not assume float type for arrayed shader outputs.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
04e2091afa
commit
cb24be8e83
@ -4081,7 +4081,7 @@ static void vkd3d_dxbc_compiler_emit_store_shader_output(struct vkd3d_dxbc_compi
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
type_id = vkd3d_spirv_get_type_id(builder, VKD3D_TYPE_FLOAT, 1);
|
type_id = vkd3d_spirv_get_type_id(builder, output_info->component_type, 1);
|
||||||
ptr_type_id = vkd3d_spirv_get_op_type_pointer(builder, SpvStorageClassOutput, type_id);
|
ptr_type_id = vkd3d_spirv_get_op_type_pointer(builder, SpvStorageClassOutput, type_id);
|
||||||
mask = output_info->array_element_mask;
|
mask = output_info->array_element_mask;
|
||||||
mask &= (1u << (output->semantic_index * VKD3D_VEC4_SIZE)) - 1;
|
mask &= (1u << (output->semantic_index * VKD3D_VEC4_SIZE)) - 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user