mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/spirv: Use vsir_register_init() in spirv_compiler_emit_cbv_declaration().
This commit is contained in:
parent
04529bc0b7
commit
67f0196c33
Notes:
Alexandre Julliard
2023-09-26 22:47:43 +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/319
@ -5623,15 +5623,12 @@ static void spirv_compiler_emit_cbv_declaration(struct spirv_compiler *compiler,
|
|||||||
const SpvStorageClass storage_class = SpvStorageClassUniform;
|
const SpvStorageClass storage_class = SpvStorageClassUniform;
|
||||||
struct vkd3d_push_constant_buffer_binding *push_cb;
|
struct vkd3d_push_constant_buffer_binding *push_cb;
|
||||||
struct vkd3d_descriptor_variable_info var_info;
|
struct vkd3d_descriptor_variable_info var_info;
|
||||||
|
struct vkd3d_shader_register reg;
|
||||||
struct vkd3d_symbol reg_symbol;
|
struct vkd3d_symbol reg_symbol;
|
||||||
unsigned int size;
|
unsigned int size;
|
||||||
|
|
||||||
struct vkd3d_shader_register reg =
|
vsir_register_init(®, VKD3DSPR_CONSTBUFFER, VKD3D_DATA_FLOAT, 1);
|
||||||
{
|
reg.idx[0].offset = register_id;
|
||||||
.type = VKD3DSPR_CONSTBUFFER,
|
|
||||||
.idx[0].offset = register_id,
|
|
||||||
.idx_count = 1,
|
|
||||||
};
|
|
||||||
|
|
||||||
size = size_in_bytes / (VKD3D_VEC4_SIZE * sizeof(uint32_t));
|
size = size_in_bytes / (VKD3D_VEC4_SIZE * sizeof(uint32_t));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user