Record Class VulkanRenderModuleSwapChain.SynchronizationVulkanSemaphores
java.lang.Object
java.lang.Record
io.codetoil.curved_spacetime.render.vulkan.VulkanRenderModuleSwapChain.SynchronizationVulkanSemaphores
- Record Components:
imageAcquisitionVulkanModuleSemaphore- signalled when a swap chain image is readyrenderCompleteVulkanModuleSemaphore- signalled when rendering into it has finished
- Enclosing class:
VulkanRenderModuleSwapChain
public static record VulkanRenderModuleSwapChain.SynchronizationVulkanSemaphores(VulkanModuleSemaphore imageAcquisitionVulkanModuleSemaphore, VulkanModuleSemaphore renderCompleteVulkanModuleSemaphore)
extends Record
The pair of semaphores that order one frame's work.
Rendering waits on the first, which the presentation engine signals once an image is available to draw into; presentation waits on the second, which the graphics queue signals once rendering has finished.
-
Constructor Summary
ConstructorsConstructorDescriptionSynchronizationVulkanSemaphores(VulkanModuleLogicalDevice vulkanModuleLogicalDevice) Creates both semaphores on the given device.SynchronizationVulkanSemaphores(VulkanModuleSemaphore imageAcquisitionVulkanModuleSemaphore, VulkanModuleSemaphore renderCompleteVulkanModuleSemaphore) Creates an instance of aSynchronizationVulkanSemaphoresrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Destroys both semaphores.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimageAcquisitionVulkanModuleSemaphorerecord component.Returns the value of therenderCompleteVulkanModuleSemaphorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SynchronizationVulkanSemaphores
Creates both semaphores on the given device.- Parameters:
vulkanModuleLogicalDevice- the device to create the semaphores on
-
SynchronizationVulkanSemaphores
public SynchronizationVulkanSemaphores(VulkanModuleSemaphore imageAcquisitionVulkanModuleSemaphore, VulkanModuleSemaphore renderCompleteVulkanModuleSemaphore) Creates an instance of aSynchronizationVulkanSemaphoresrecord class.- Parameters:
imageAcquisitionVulkanModuleSemaphore- the value for theimageAcquisitionVulkanModuleSemaphorerecord componentrenderCompleteVulkanModuleSemaphore- the value for therenderCompleteVulkanModuleSemaphorerecord component
-
-
Method Details
-
cleanup
public void cleanup()Destroys both semaphores. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
imageAcquisitionVulkanModuleSemaphore
Returns the value of theimageAcquisitionVulkanModuleSemaphorerecord component.- Returns:
- the value of the
imageAcquisitionVulkanModuleSemaphorerecord component
-
renderCompleteVulkanModuleSemaphore
Returns the value of therenderCompleteVulkanModuleSemaphorerecord component.- Returns:
- the value of the
renderCompleteVulkanModuleSemaphorerecord component
-