public unsafe static Result GetSwapchainImagesKHR(Device device, SwapchainKHR swapchain, ref UInt32 pSwapchainImageCount, Image[] pSwapchainImages) { fixed(Image *ptr = pSwapchainImages) { return(_GetSwapchainImagesKHR(device, swapchain, ref pSwapchainImageCount, (IntPtr)ptr)); } }
public _SwapchainCreateInfoKHR(SwapchainCreateInfoKHR info) { SType = info.type; Next = info.next; Flags = info.flags; Surface = info.surface; MinImageCount = info.minImageCount; ImageFormat = info.imageFormat; ImageColorSpace = info.imageColorSpace; ImageExtent = info.imageExtent; ImageArrayLayers = info.imageArrayLayers; ImageUsage = info.imageUsage; ImageSharingMode = info.imageSharingMode; QueueFamilyIndexCount = (UInt32)(info.queueFamilyIndices?.Count ?? 0); QueueFamilyIndices = info.queueFamilyIndices != null?Alloc.alloc(info.queueFamilyIndices) : IntPtr.Zero; PreTransform = info.preTransform; CompositeAlpha = info.compositeAlpha; PresentMode = info.presentMode; Clipped = info.clipped; OldSwapchain = info.oldSwapchain; }
public static Result CreateSwapchainKHR(Device device, ref SwapchainCreateInfoKHR pCreateInfo, ref SwapchainKHR pSwapchain, AllocationCallbacks pAllocator = null) { _SwapchainCreateInfoKHR info = new _SwapchainCreateInfoKHR(pCreateInfo); Result res = _CreateSwapchainKHR(device, ref info, pAllocator, out pSwapchain); info.destroy(); return(res); }