示例#1
0
        internal static unsafe FormatProperties2 MarshalFrom(Interop.FormatProperties2 *value)
        {
            FormatProperties2 result = new FormatProperties2();

            result.FormatProperties = value->FormatProperties;
            return(result);
        }
        /// <summary>
        ///
        /// </summary>
        internal static unsafe FormatProperties2 MarshalFrom(SharpVk.Interop.FormatProperties2 *pointer)
        {
            FormatProperties2 result = default(FormatProperties2);

            result.FormatProperties = pointer->FormatProperties;
            return(result);
        }
示例#3
0
 /// <summary>
 /// Lists physical device's format capabilities.
 /// </summary>
 public FormatProperties2 GetFormatProperties2(Format format)
 {
     unsafe
     {
         try
         {
             var commandDelegate = this.commandCache.GetCommandDelegate <Interop.vkGetPhysicalDeviceFormatProperties2KHR>("vkGetPhysicalDeviceFormatProperties2KHR", "instance");
             FormatProperties2         result = default(FormatProperties2);
             Interop.FormatProperties2 marshalledFormatProperties;
             commandDelegate(this.handle, format, &marshalledFormatProperties);
             result = FormatProperties2.MarshalFrom(&marshalledFormatProperties);
             return(result);
         }
         finally
         {
             Interop.HeapUtil.FreeLog();
         }
     }
 }