[PATCH vkd3d 2/5] vkd3d-shader: Introduce a base structure for chaining input structures.

Conor McCarthy cmccarthy at codeweavers.com
Tue Oct 12 08:37:44 CDT 2021


Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
---
 include/vkd3d_shader.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/vkd3d_shader.h b/include/vkd3d_shader.h
index 77cc3751..8345daf8 100644
--- a/include/vkd3d_shader.h
+++ b/include/vkd3d_shader.h
@@ -391,6 +391,15 @@ struct vkd3d_shader_push_constant_buffer
     unsigned int size;
 };
 
+/** A chained structure for use when adding new input chain elements. */
+struct vkd3d_shader_base_in_structure
+{
+    /** Must be set to a value from enum vkd3d_shader_structure_type. */
+    enum vkd3d_shader_structure_type type;
+    /** Optional pointer to a structure containing further parameters. */
+    const void *next;
+};
+
 /**
  * A chained structure describing the interface between a compiled shader and
  * the target environment.
-- 
2.32.0




More information about the wine-devel mailing list