Class VulkanCommandBufferSubmitInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanCommandBufferSubmitInfo
- All Implemented Interfaces:
VulkanCommandBufferSubmitInfoType
public final class VulkanCommandBufferSubmitInfo
extends Object
implements VulkanCommandBufferSubmitInfoType
The type of Vulkan command buffer submission information.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanCommandBufferSubmitInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanCommandBufferSubmitInfo.copyOf(VulkanCommandBufferSubmitInfoType instance) Creates an immutable copy of aVulkanCommandBufferSubmitInfoTypevalue.longbooleanThis instance is equal to all instances ofVulkanCommandBufferSubmitInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:commandBuffer,deviceMask.toString()Prints the immutable valueVulkanCommandBufferSubmitInfowith attribute values.Copy the current immutable object by setting a value for thecommandBufferattribute.withDeviceMask(long value) Copy the current immutable object by setting a value for thedeviceMaskattribute.
-
Method Details
-
commandBuffer
- Specified by:
commandBufferin interfaceVulkanCommandBufferSubmitInfoType- Returns:
- The command buffer
-
deviceMask
public long deviceMask()- Specified by:
deviceMaskin interfaceVulkanCommandBufferSubmitInfoType- Returns:
- A bitmask indicating which devices in a device group execute the command buffer
-
withCommandBuffer
Copy the current immutable object by setting a value for thecommandBufferattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commandBuffer- Returns:
- A modified copy or the
thisobject
-
withDeviceMask
Copy the current immutable object by setting a value for thedeviceMaskattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for deviceMask- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanCommandBufferSubmitInfoTypevalue. 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 VulkanCommandBufferSubmitInfo instance
-
builder
Creates a builder forVulkanCommandBufferSubmitInfo.VulkanCommandBufferSubmitInfo.builder() .setCommandBuffer(com.io7m.jcoronado.api.VulkanCommandBufferType) // required
commandBuffer.setDeviceMask(long) // optionaldeviceMask.build();- Returns:
- A new VulkanCommandBufferSubmitInfo builder
-