Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        internal static unsafe PhysicalDeviceImageFormatInfo2 MarshalFrom(SharpVk.Interop.PhysicalDeviceImageFormatInfo2 *pointer)
        {
            PhysicalDeviceImageFormatInfo2 result = default(PhysicalDeviceImageFormatInfo2);

            result.Format = pointer->Format;
            result.Type   = pointer->Type;
            result.Tiling = pointer->Tiling;
            result.Usage  = pointer->Usage;
            result.Flags  = pointer->Flags;
            return(result);
        }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 internal unsafe void MarshalTo(SharpVk.Interop.PhysicalDeviceImageFormatInfo2 *pointer)
 {
     pointer->Next   = null;
     pointer->Format = this.Format;
     pointer->Type   = this.Type;
     pointer->Tiling = this.Tiling;
     pointer->Usage  = this.Usage;
     if (this.Flags != null)
     {
         pointer->Flags = this.Flags.Value;
     }
     else
     {
         pointer->Flags = default(SharpVk.ImageCreateFlags);
     }
 }