コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 public unsafe void GetStatus()
 {
     try
     {
         SharpVk.Interop.Khronos.VkSwapchainKHRGetStatusDelegate commandDelegate = commandCache.GetCommandDelegate <SharpVk.Interop.Khronos.VkSwapchainKHRGetStatusDelegate>("vkGetSwapchainStatusKHR", "instance");
         Result methodResult = commandDelegate(this.parent.handle, this.handle);
         if (SharpVkException.IsError(methodResult))
         {
             throw SharpVkException.Create(methodResult);
         }
     }
     finally
     {
         Interop.HeapUtil.FreeAll();
     }
 }
コード例 #2
0
ファイル: Swapchain.gen.cs プロジェクト: ClintKilmer/CKGL.VK
 /// <summary>
 ///
 /// </summary>
 public unsafe Result GetStatus()
 {
     try
     {
         Result result = default(Result);
         SharpVk.Interop.Khronos.VkSwapchainKHRGetStatusDelegate commandDelegate = commandCache.Cache.vkGetSwapchainStatusKHR;
         result = commandDelegate(this.parent.handle, this.handle);
         if (SharpVkException.IsError(result))
         {
             throw SharpVkException.Create(result);
         }
         return(result);
     }
     finally
     {
         Interop.HeapUtil.FreeAll();
     }
 }