From: Francisco Casas fcasas@codeweavers.com
--- libs/vkd3d-shader/hlsl.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/libs/vkd3d-shader/hlsl.h b/libs/vkd3d-shader/hlsl.h index bf445655..0d1cdd93 100644 --- a/libs/vkd3d-shader/hlsl.h +++ b/libs/vkd3d-shader/hlsl.h @@ -189,15 +189,21 @@ struct hlsl_semantic uint32_t index; };
+/* A field within a struct type declaration, used in hlsl_type.e.fields. */ struct hlsl_struct_field { struct vkd3d_shader_location loc; struct hlsl_type *type; const char *name; struct hlsl_semantic semantic; + + /* Bitfield for storing type modifiers specific to this field, subset of + * HLSL_TYPE_MODIFIERS_MASK, but can also include interpolation modifiers such as + * HLSL_STORAGE_NOINTERPOLATION for pixel shader inputs. */ unsigned int modifiers; + /* Offset of the field within the type it belongs to, in numeric register components. */ unsigned int reg_offset; - + /* Offset where the fields's name starts in the output bytecode. */ size_t name_bytecode_offset; };