Esempio n. 1
0
        public unsafe PresentModeKHR[] GetPhysicalDeviceSurfacePresentModes(VulkanPhysicalDevice physicalDevice, SurfaceKHR surface)
        {
            uint presentationCount = 0u;

            GetPhysicalDeviceSurfacePresentModes(physicalDevice, surface, &presentationCount, (PresentModeKHR *)null !);

            if (presentationCount is 0u)
            {
                return(Array.Empty <PresentModeKHR>());
            }

            PresentModeKHR *presentModesPointer = stackalloc PresentModeKHR[(int)presentationCount];

            GetPhysicalDeviceSurfacePresentModes(physicalDevice, surface, &presentationCount, presentModesPointer);
            PresentModeKHR[] presentModes = new PresentModeKHR[presentationCount];
            new Span <PresentModeKHR>(presentModesPointer, (int)presentationCount).CopyTo(presentModes);
            return(presentModes);
        }
 /// <summary>To be documented.</summary>
 public static unsafe Result GetPhysicalDeviceSurfacePresentModes2(this ExtFullScreenExclusive thisApi, [Count(Count = 0)] PhysicalDevice physicalDevice, [Count(Count = 0), Flow(FlowDirection.In)] ReadOnlySpan <PhysicalDeviceSurfaceInfo2KHR> pSurfaceInfo, [Count(Count = 0)] Span <uint> pPresentModeCount, [Count(Computed = "pPresentModeCount"), Flow(FlowDirection.Out)] PresentModeKHR *pPresentModes)
 {
     // SpanOverloader
     return(thisApi.GetPhysicalDeviceSurfacePresentModes2(physicalDevice, in pSurfaceInfo.GetPinnableReference(), ref pPresentModeCount.GetPinnableReference(), pPresentModes));
 }
Esempio n. 3
0
 public abstract unsafe Result GetPhysicalDeviceSurfacePresentModes([Count(Count = 0)] PhysicalDevice physicalDevice, [Count(Count = 0)] SurfaceKHR surface, [Count(Count = 0)] uint *pPresentModeCount, [Count(Computed = "pPresentModeCount"), Flow(FlowDirection.Out)] PresentModeKHR *pPresentModes);
 /// <summary>To be documented.</summary>
 public static unsafe Result GetPhysicalDeviceSurfacePresentModes(this KhrSurface thisApi, [Count(Count = 0)] PhysicalDevice physicalDevice, [Count(Count = 0)] SurfaceKHR surface, [Count(Count = 0)] Span <uint> pPresentModeCount, [Count(Parameter = "pPresentModeCount"), Flow(FlowDirection.Out)] PresentModeKHR *pPresentModes)
 {
     // SpanOverloader
     return(thisApi.GetPhysicalDeviceSurfacePresentModes(physicalDevice, surface, ref pPresentModeCount.GetPinnableReference(), pPresentModes));
 }