Zebediah Figura : vkd3d-shader: Rename name_offset to name_bytecode_offset.

Alexandre Julliard julliard at winehq.org
Mon May 10 15:43:04 CDT 2021


Module: vkd3d
Branch: master
Commit: aab948275892cbad2b1c84951a5c5400a9036350
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=aab948275892cbad2b1c84951a5c5400a9036350

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Tue Apr 27 12:14:15 2021 -0500

vkd3d-shader: Rename name_offset to name_bytecode_offset.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 libs/vkd3d-shader/hlsl.h         | 4 ++--
 libs/vkd3d-shader/hlsl_codegen.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libs/vkd3d-shader/hlsl.h b/libs/vkd3d-shader/hlsl.h
index 3dc7a26..0c755f4 100644
--- a/libs/vkd3d-shader/hlsl.h
+++ b/libs/vkd3d-shader/hlsl.h
@@ -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
diff --git a/libs/vkd3d-shader/hlsl_codegen.c b/libs/vkd3d-shader/hlsl_codegen.c
index 1b5e8a2..2c07171 100644
--- a/libs/vkd3d-shader/hlsl_codegen.c
+++ b/libs/vkd3d-shader/hlsl_codegen.c
@@ -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;
         }




More information about the wine-cvs mailing list