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:
Zebediah Figura 2021-04-27 12:14:15 -05:00 committed by Alexandre Julliard
parent 8b99fc66d3
commit aab9482758
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;
}