aboutsummaryrefslogtreecommitdiffstatsci
path: root/vulkan/StructTypeAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'vulkan/StructTypeAttribute.cs')
-rw-r--r--vulkan/StructTypeAttribute.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/vulkan/StructTypeAttribute.cs b/vulkan/StructTypeAttribute.cs
new file mode 100644
index 0000000..55f8177
--- /dev/null
+++ b/vulkan/StructTypeAttribute.cs
@@ -0,0 +1,20 @@
+// Copyright (c) 2021 Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
+//
+// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
+using System;
+
+namespace Vulkan
+{
+ /// <summary>
+ /// tel the rewriter to automatically set the structure type
+ /// </summary>
+ [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)]
+ public class StructureTypeAttribute : Attribute
+ {
+ int structureType;
+ public StructureTypeAttribute (int value) : base() {
+ structureType = value;
+ }
+ public int StructureType => structureType;
+ }
+}