public PresentInfoKHR ( StructureType?sType = StructureType.PresentInfoKhr, void *pNext = null, uint?waitSemaphoreCount = null, Semaphore *pWaitSemaphores = null, uint?swapchainCount = null, SwapchainKHR *pSwapchains = null, uint *pImageIndices = null, Result *pResults = null ) : this() { if (sType is not null) { SType = sType.Value; } if (pNext is not null) { PNext = pNext; } if (waitSemaphoreCount is not null) { WaitSemaphoreCount = waitSemaphoreCount.Value; } if (pWaitSemaphores is not null) { PWaitSemaphores = pWaitSemaphores; } if (swapchainCount is not null) { SwapchainCount = swapchainCount.Value; } if (pSwapchains is not null) { PSwapchains = pSwapchains; } if (pImageIndices is not null) { PImageIndices = pImageIndices; } if (pResults is not null) { PResults = pResults; } }
public PresentInfoKHR ( StructureType sType = StructureType.PresentInfoKhr, void *pNext = default, uint waitSemaphoreCount = default, Semaphore *pWaitSemaphores = default, uint swapchainCount = default, SwapchainKHR *pSwapchains = default, uint *pImageIndices = default, Result *pResults = default ) { SType = sType; PNext = pNext; WaitSemaphoreCount = waitSemaphoreCount; PWaitSemaphores = pWaitSemaphores; SwapchainCount = swapchainCount; PSwapchains = pSwapchains; PImageIndices = pImageIndices; PResults = pResults; }
internal void ToNative(out Native native, long *waitSemaphores, long *swapchains, int *imageIndices, Result *results) { native.Type = StructureType.PresentInfoKhr; native.Next = Next; native.WaitSemaphoreCount = WaitSemaphores?.Length ?? 0; native.WaitSemaphores = waitSemaphores; native.SwapchainCount = Swapchains?.Length ?? 0; native.Swapchains = swapchains; native.ImageIndices = imageIndices; native.Results = results; }