예제 #1
0
 /// <summary>
 /// Returns properties of a physical device.
 /// </summary>
 public unsafe SharpVk.PhysicalDeviceProperties GetProperties()
 {
     try
     {
         SharpVk.PhysicalDeviceProperties         result = default(SharpVk.PhysicalDeviceProperties);
         SharpVk.Interop.PhysicalDeviceProperties marshalledProperties = default(SharpVk.Interop.PhysicalDeviceProperties);
         Interop.Commands.vkGetPhysicalDeviceProperties(this.handle, &marshalledProperties);
         result = SharpVk.PhysicalDeviceProperties.MarshalFrom(&marshalledProperties);
         return(result);
     }
     finally
     {
         Interop.HeapUtil.FreeAll();
     }
 }
예제 #2
0
 /// <summary>
 /// Returns properties of a physical device.
 /// </summary>
 public unsafe SharpVk.PhysicalDeviceProperties GetProperties()
 {
     try
     {
         SharpVk.PhysicalDeviceProperties         result = default(SharpVk.PhysicalDeviceProperties);
         SharpVk.Interop.PhysicalDeviceProperties marshalledProperties         = default(SharpVk.Interop.PhysicalDeviceProperties);
         SharpVk.Interop.VkPhysicalDeviceGetPropertiesDelegate commandDelegate = commandCache.GetCommandDelegate <SharpVk.Interop.VkPhysicalDeviceGetPropertiesDelegate>("vkGetPhysicalDeviceProperties", "");
         commandDelegate(this.handle, &marshalledProperties);
         result = SharpVk.PhysicalDeviceProperties.MarshalFrom(&marshalledProperties);
         return(result);
     }
     finally
     {
         Interop.HeapUtil.FreeAll();
     }
 }