Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/tpf.c:
+ if (uav) + { + switch (var->data_type->sampler_dim) + { + case HLSL_SAMPLER_DIM_STRUCTURED_BUFFER: + instr.opcode = VKD3D_SM5_OP_DCL_UAV_STRUCTURED; + instr.byte_stride = var->data_type->e.resource_format->reg_size[HLSL_REGSET_NUMERIC] * 4; + break; + default: + instr.opcode = VKD3D_SM5_OP_DCL_UAV_TYPED; + break; + } + } + else + instr.opcode = VKD3D_SM4_OP_DCL_RESOURCE;
The standard style in vkd3d is that either none or both branches have braces. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/193#note_33004