Example #1
0
 internal unsafe void MarshalTo(Interop.ImageCreateInfo *pointer)
 {
     pointer->SType = StructureType.ImageCreateInfo;
     pointer->Next  = null;
     pointer->QueueFamilyIndices    = this.QueueFamilyIndices == null ? null : Interop.HeapUtil.MarshalTo(this.QueueFamilyIndices);
     pointer->QueueFamilyIndexCount = (uint)(this.QueueFamilyIndices?.Length ?? 0);
     pointer->Flags         = this.Flags;
     pointer->ImageType     = this.ImageType;
     pointer->Format        = this.Format;
     pointer->Extent        = this.Extent;
     pointer->MipLevels     = this.MipLevels;
     pointer->ArrayLayers   = this.ArrayLayers;
     pointer->Samples       = this.Samples;
     pointer->Tiling        = this.Tiling;
     pointer->Usage         = this.Usage;
     pointer->SharingMode   = this.SharingMode;
     pointer->InitialLayout = this.InitialLayout;
 }
Example #2
0
 internal ImageCreateInfo(Interop.ImageCreateInfo* ptr)
 {
     m = ptr;
     Initialize ();
 }
Example #3
0
 public ImageCreateInfo()
 {
     m = (Interop.ImageCreateInfo*) Interop.Structure.Allocate (typeof (Interop.ImageCreateInfo));
     Initialize ();
 }