mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/hlsl: vsir constant buffer sizes are specified in bytes.
This commit is contained in:
Notes:
Henri Verbeet
2025-09-11 16:15:21 +02:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1724
@@ -3695,7 +3695,7 @@ static void write_sm4_instruction(const struct tpf_compiler *tpf, const struct s
|
||||
static void tpf_dcl_constant_buffer(const struct tpf_compiler *tpf, const struct vkd3d_shader_instruction *ins)
|
||||
{
|
||||
const struct vkd3d_shader_constant_buffer *cb = &ins->declaration.cb;
|
||||
size_t size = (cb->size + 3) / 4;
|
||||
size_t size = cb->size / VKD3D_VEC4_SIZE / sizeof(float);
|
||||
|
||||
struct sm4_instruction instr =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user