mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Rename name_offset to name_bytecode_offset.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8b99fc66d3
commit
aab9482758
@ -136,9 +136,9 @@ struct hlsl_struct_field
|
||||
struct hlsl_type *type;
|
||||
const char *name;
|
||||
const char *semantic;
|
||||
|
||||
unsigned int reg_offset;
|
||||
unsigned int name_offset;
|
||||
|
||||
unsigned int name_bytecode_offset;
|
||||
};
|
||||
|
||||
struct hlsl_reg
|
||||
|
@ -1051,7 +1051,7 @@ static void write_sm1_type(struct bytecode_buffer *buffer, struct hlsl_type *typ
|
||||
{
|
||||
LIST_FOR_EACH_ENTRY(field, array_type->e.elements, struct hlsl_struct_field, entry)
|
||||
{
|
||||
field->name_offset = buffer->count;
|
||||
field->name_bytecode_offset = buffer->count;
|
||||
put_string(buffer, field->name);
|
||||
write_sm1_type(buffer, field->type, ctab_start);
|
||||
}
|
||||
@ -1060,7 +1060,7 @@ static void write_sm1_type(struct bytecode_buffer *buffer, struct hlsl_type *typ
|
||||
|
||||
LIST_FOR_EACH_ENTRY(field, array_type->e.elements, struct hlsl_struct_field, entry)
|
||||
{
|
||||
put_dword(buffer, (field->name_offset - ctab_start) * sizeof(*buffer->data));
|
||||
put_dword(buffer, (field->name_bytecode_offset - ctab_start) * sizeof(*buffer->data));
|
||||
put_dword(buffer, (field->type->bytecode_offset - ctab_start) * sizeof(*buffer->data));
|
||||
++field_count;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user