コード例 #1
0
 internal unsafe void MarshalTo(Interop.InstanceCreateInfo *pointer)
 {
     pointer->SType                 = StructureType.InstanceCreateInfo;
     pointer->Next                  = null;
     pointer->ApplicationInfo       = this.ApplicationInfo == null ? null : this.ApplicationInfo.Value.MarshalTo();
     pointer->EnabledLayerNames     = this.EnabledLayerNames == null ? null : Interop.HeapUtil.MarshalTo(this.EnabledLayerNames);
     pointer->EnabledExtensionNames = this.EnabledExtensionNames == null ? null : Interop.HeapUtil.MarshalTo(this.EnabledExtensionNames);
     pointer->EnabledLayerCount     = (uint)(this.EnabledLayerNames?.Length ?? 0);
     pointer->EnabledExtensionCount = (uint)(this.EnabledExtensionNames?.Length ?? 0);
     pointer->Flags                 = this.Flags;
 }
コード例 #2
0
ファイル: Structs.cs プロジェクト: yongweisun/VulkanSharp
 internal InstanceCreateInfo(Interop.InstanceCreateInfo* ptr)
 {
     m = ptr;
     Initialize ();
 }
コード例 #3
0
ファイル: Structs.cs プロジェクト: yongweisun/VulkanSharp
 public InstanceCreateInfo()
 {
     m = (Interop.InstanceCreateInfo*) Interop.Structure.Allocate (typeof (Interop.InstanceCreateInfo));
     Initialize ();
 }