コード例 #1
0
 /// <summary>
 /// Reports capabilities of a physical device.
 /// </summary>
 public unsafe SharpVk.PhysicalDeviceFeatures GetFeatures()
 {
     try
     {
         SharpVk.PhysicalDeviceFeatures         result             = default(SharpVk.PhysicalDeviceFeatures);
         SharpVk.Interop.PhysicalDeviceFeatures marshalledFeatures = default(SharpVk.Interop.PhysicalDeviceFeatures);
         Interop.Commands.vkGetPhysicalDeviceFeatures(this.handle, &marshalledFeatures);
         result = SharpVk.PhysicalDeviceFeatures.MarshalFrom(&marshalledFeatures);
         return(result);
     }
     finally
     {
         Interop.HeapUtil.FreeAll();
     }
 }
コード例 #2
0
ファイル: PhysicalDevice.gen.cs プロジェクト: yaram/SharpVk
 /// <summary>
 /// Reports capabilities of a physical device.
 /// </summary>
 public unsafe SharpVk.PhysicalDeviceFeatures GetFeatures()
 {
     try
     {
         SharpVk.PhysicalDeviceFeatures         result                       = default(SharpVk.PhysicalDeviceFeatures);
         SharpVk.Interop.PhysicalDeviceFeatures marshalledFeatures           = default(SharpVk.Interop.PhysicalDeviceFeatures);
         SharpVk.Interop.VkPhysicalDeviceGetFeaturesDelegate commandDelegate = commandCache.GetCommandDelegate <SharpVk.Interop.VkPhysicalDeviceGetFeaturesDelegate>("vkGetPhysicalDeviceFeatures", "");
         commandDelegate(this.handle, &marshalledFeatures);
         result = SharpVk.PhysicalDeviceFeatures.MarshalFrom(&marshalledFeatures);
         return(result);
     }
     finally
     {
         Interop.HeapUtil.FreeAll();
     }
 }