Class VulkanSemaphoreSubmitInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanSemaphoreSubmitInfo
- All Implemented Interfaces:
VulkanSemaphoreSubmitInfoType
public final class VulkanSemaphoreSubmitInfo
extends Object
implements VulkanSemaphoreSubmitInfoType
The type of Vulkan semaphore submission information.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanSemaphoreSubmitInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanSemaphoreSubmitInfo.static VulkanSemaphoreSubmitInfocopyOf(VulkanSemaphoreSubmitInfoType instance) Creates an immutable copy of aVulkanSemaphoreSubmitInfoTypevalue.longbooleanThis instance is equal to all instances ofVulkanSemaphoreSubmitInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:semaphore,value,stageMask,deviceIndex.toString()Prints the immutable valueVulkanSemaphoreSubmitInfowith attribute values.longvalue()withDeviceIndex(long value) Copy the current immutable object by setting a value for thedeviceIndexattribute.withSemaphore(VulkanSemaphoreType value) Copy the current immutable object by setting a value for thesemaphoreattribute.withStageMask(VulkanPipelineStageFlag... elements) Copy the current immutable object with elements that replace the content ofstageMask.withStageMask(Iterable<VulkanPipelineStageFlag> elements) Copy the current immutable object with elements that replace the content ofstageMask.withValue(long value) Copy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
semaphore
- Specified by:
semaphorein interfaceVulkanSemaphoreSubmitInfoType- Returns:
- The semaphore
-
value
public long value()- Specified by:
valuein interfaceVulkanSemaphoreSubmitInfoType- Returns:
- The value used to signal semaphore or the value waited on by semaphore, if semaphore is a timeline semaphore
-
stageMask
- Specified by:
stageMaskin interfaceVulkanSemaphoreSubmitInfoType- Returns:
- The stage mask
-
deviceIndex
public long deviceIndex()- Specified by:
deviceIndexin interfaceVulkanSemaphoreSubmitInfoType- Returns:
- The index of the device within a device group that executes the semaphore wait or signal operation.
-
withSemaphore
Copy the current immutable object by setting a value for thesemaphoreattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for semaphore- Returns:
- A modified copy or the
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy or the
thisobject
-
withStageMask
Copy the current immutable object with elements that replace the content ofstageMask.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withStageMask
Copy the current immutable object with elements that replace the content ofstageMask. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of stageMask elements to set- Returns:
- A modified copy or
thisif not changed
-
withDeviceIndex
Copy the current immutable object by setting a value for thedeviceIndexattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for deviceIndex- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanSemaphoreSubmitInfoTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanSemaphoreSubmitInfo instance
-
builder
Creates a builder forVulkanSemaphoreSubmitInfo.VulkanSemaphoreSubmitInfo.builder() .setSemaphore(com.io7m.jcoronado.api.VulkanSemaphoreType) // required
semaphore.setValue(long) // optionalvalue.addStageMask|addAllStageMask(com.io7m.jcoronado.api.VulkanPipelineStageFlag) //stageMaskelements .setDeviceIndex(long) // optionaldeviceIndex.build();- Returns:
- A new VulkanSemaphoreSubmitInfo builder
-