Пример #1
0
 /// <summary>
 /// Lists physical device's format capabilities.
 /// </summary>
 public unsafe SharpVk.FormatProperties GetFormatProperties(SharpVk.Format format)
 {
     try
     {
         SharpVk.FormatProperties result = default(SharpVk.FormatProperties);
         SharpVk.FormatProperties marshalledFormatProperties = default(SharpVk.FormatProperties);
         Interop.Commands.vkGetPhysicalDeviceFormatProperties(this.handle, format, &marshalledFormatProperties);
         result = marshalledFormatProperties;
         return(result);
     }
     finally
     {
         Interop.HeapUtil.FreeAll();
     }
 }
Пример #2
0
 /// <summary>
 /// Lists physical device's format capabilities.
 /// </summary>
 public unsafe SharpVk.FormatProperties GetFormatProperties(SharpVk.Format format)
 {
     try
     {
         SharpVk.FormatProperties result = default(SharpVk.FormatProperties);
         SharpVk.FormatProperties marshalledFormatProperties = default(SharpVk.FormatProperties);
         SharpVk.Interop.VkPhysicalDeviceGetFormatPropertiesDelegate commandDelegate = commandCache.GetCommandDelegate <SharpVk.Interop.VkPhysicalDeviceGetFormatPropertiesDelegate>("vkGetPhysicalDeviceFormatProperties", "");
         commandDelegate(this.handle, format, &marshalledFormatProperties);
         result = marshalledFormatProperties;
         return(result);
     }
     finally
     {
         Interop.HeapUtil.FreeAll();
     }
 }