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_sampler_declaration().
This commit is contained in:
parent
b2f262467f
commit
314c6e4808
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
@ -5706,15 +5706,12 @@ static void spirv_compiler_emit_sampler_declaration(struct spirv_compiler *compi
|
||||
const SpvStorageClass storage_class = SpvStorageClassUniformConstant;
|
||||
struct vkd3d_spirv_builder *builder = &compiler->spirv_builder;
|
||||
struct vkd3d_descriptor_variable_info var_info;
|
||||
struct vkd3d_shader_register reg;
|
||||
struct vkd3d_symbol reg_symbol;
|
||||
uint32_t type_id, var_id;
|
||||
|
||||
const struct vkd3d_shader_register reg =
|
||||
{
|
||||
.type = VKD3DSPR_SAMPLER,
|
||||
.idx[0].offset = register_id,
|
||||
.idx_count = 1,
|
||||
};
|
||||
vsir_register_init(®, VKD3DSPR_SAMPLER, VKD3D_DATA_FLOAT, 1);
|
||||
reg.idx[0].offset = register_id;
|
||||
|
||||
vkd3d_symbol_make_sampler(®_symbol, ®);
|
||||
reg_symbol.info.sampler.range = *range;
|
||||
|
Loading…
Reference in New Issue
Block a user