mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d-shader/fx: Fix variable buffer offset value.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
402dc94259
commit
222c52380b
Notes:
Henri Verbeet
2024-06-12 19:13:16 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/904
@ -1000,7 +1000,7 @@ static void write_fx_4_numeric_variable(struct hlsl_ir_var *var, bool shared, st
|
||||
put_u32(buffer, type_offset);
|
||||
|
||||
semantic_offset = put_u32(buffer, semantic_offset); /* Semantic */
|
||||
put_u32(buffer, var->buffer_offset); /* Offset in the constant buffer */
|
||||
put_u32(buffer, var->buffer_offset * 4); /* Offset in the constant buffer, in bytes. */
|
||||
value_offset = put_u32(buffer, 0); /* Default value offset */
|
||||
put_u32(buffer, flags); /* Flags */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user