Class VulkanImageMemoryBarrier
java.lang.Object
com.io7m.jcoronado.api.VulkanImageMemoryBarrier
- All Implemented Interfaces:
VulkanImageMemoryBarrierType
Structure specifying the parameters of an image memory barrier.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanImageMemoryBarrier. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanImageMemoryBarrier.static VulkanImageMemoryBarriercopyOf(VulkanImageMemoryBarrierType instance) Creates an immutable copy of aVulkanImageMemoryBarrierTypevalue.booleanThis instance is equal to all instances ofVulkanImageMemoryBarrierthat have equal attribute values.inthashCode()Computes a hash code from attributes:srcStageMask,srcAccessMask,dstStageMask,dstAccessMask,oldLayout,newLayout,srcQueueFamilyIndex,dstQueueFamilyIndex,image,subresourceRange.image()toString()Prints the immutable valueVulkanImageMemoryBarrierwith attribute values.final VulkanImageMemoryBarrierwithDstAccessMask(VulkanAccessFlag... elements) Copy the current immutable object with elements that replace the content ofdstAccessMask.final VulkanImageMemoryBarrierwithDstAccessMask(Iterable<VulkanAccessFlag> elements) Copy the current immutable object with elements that replace the content ofdstAccessMask.final VulkanImageMemoryBarrierCopy the current immutable object by setting a value for thedstQueueFamilyIndexattribute.final VulkanImageMemoryBarrierwithDstStageMask(VulkanPipelineStageFlag... elements) Copy the current immutable object with elements that replace the content ofdstStageMask.final VulkanImageMemoryBarrierwithDstStageMask(Iterable<VulkanPipelineStageFlag> elements) Copy the current immutable object with elements that replace the content ofdstStageMask.final VulkanImageMemoryBarrierwithImage(VulkanImageType value) Copy the current immutable object by setting a value for theimageattribute.final VulkanImageMemoryBarrierwithNewLayout(VulkanImageLayout value) Copy the current immutable object by setting a value for thenewLayoutattribute.final VulkanImageMemoryBarrierwithOldLayout(VulkanImageLayout value) Copy the current immutable object by setting a value for theoldLayoutattribute.final VulkanImageMemoryBarrierwithSrcAccessMask(VulkanAccessFlag... elements) Copy the current immutable object with elements that replace the content ofsrcAccessMask.final VulkanImageMemoryBarrierwithSrcAccessMask(Iterable<VulkanAccessFlag> elements) Copy the current immutable object with elements that replace the content ofsrcAccessMask.final VulkanImageMemoryBarrierCopy the current immutable object by setting a value for thesrcQueueFamilyIndexattribute.final VulkanImageMemoryBarrierwithSrcStageMask(VulkanPipelineStageFlag... elements) Copy the current immutable object with elements that replace the content ofsrcStageMask.final VulkanImageMemoryBarrierwithSrcStageMask(Iterable<VulkanPipelineStageFlag> elements) Copy the current immutable object with elements that replace the content ofsrcStageMask.final VulkanImageMemoryBarrierCopy the current immutable object by setting a value for thesubresourceRangeattribute.
-
Method Details
-
srcStageMask
- Specified by:
srcStageMaskin interfaceVulkanImageMemoryBarrierType- Returns:
- The source stage mask
-
srcAccessMask
- Specified by:
srcAccessMaskin interfaceVulkanImageMemoryBarrierType- Returns:
- The source access mask
-
dstStageMask
- Specified by:
dstStageMaskin interfaceVulkanImageMemoryBarrierType- Returns:
- The destination stage mask
-
dstAccessMask
- Specified by:
dstAccessMaskin interfaceVulkanImageMemoryBarrierType- Returns:
- The destination access mask
-
oldLayout
- Specified by:
oldLayoutin interfaceVulkanImageMemoryBarrierType- Returns:
- The original image layout
-
newLayout
- Specified by:
newLayoutin interfaceVulkanImageMemoryBarrierType- Returns:
- The target image layout
-
srcQueueFamilyIndex
- Specified by:
srcQueueFamilyIndexin interfaceVulkanImageMemoryBarrierType- Returns:
- The source queue family for a queue family ownership transfer.
-
dstQueueFamilyIndex
- Specified by:
dstQueueFamilyIndexin interfaceVulkanImageMemoryBarrierType- Returns:
- The target queue family for a queue family ownership transfer.
-
image
- Specified by:
imagein interfaceVulkanImageMemoryBarrierType- Returns:
- The image affected by this barrier.
-
subresourceRange
- Specified by:
subresourceRangein interfaceVulkanImageMemoryBarrierType- Returns:
- The image subresource range within image that is affected by this barrier.
-
withSrcStageMask
Copy the current immutable object with elements that replace the content ofsrcStageMask.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSrcStageMask
Copy the current immutable object with elements that replace the content ofsrcStageMask. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of srcStageMask elements to set- Returns:
- A modified copy or
thisif not changed
-
withSrcAccessMask
Copy the current immutable object with elements that replace the content ofsrcAccessMask.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSrcAccessMask
Copy the current immutable object with elements that replace the content ofsrcAccessMask. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of srcAccessMask elements to set- Returns:
- A modified copy or
thisif not changed
-
withDstStageMask
Copy the current immutable object with elements that replace the content ofdstStageMask.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDstStageMask
Copy the current immutable object with elements that replace the content ofdstStageMask. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of dstStageMask elements to set- Returns:
- A modified copy or
thisif not changed
-
withDstAccessMask
Copy the current immutable object with elements that replace the content ofdstAccessMask.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDstAccessMask
Copy the current immutable object with elements that replace the content ofdstAccessMask. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of dstAccessMask elements to set- Returns:
- A modified copy or
thisif not changed
-
withOldLayout
Copy the current immutable object by setting a value for theoldLayoutattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for oldLayout- Returns:
- A modified copy or the
thisobject
-
withNewLayout
Copy the current immutable object by setting a value for thenewLayoutattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for newLayout- Returns:
- A modified copy or the
thisobject
-
withSrcQueueFamilyIndex
Copy the current immutable object by setting a value for thesrcQueueFamilyIndexattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for srcQueueFamilyIndex- Returns:
- A modified copy or the
thisobject
-
withDstQueueFamilyIndex
Copy the current immutable object by setting a value for thedstQueueFamilyIndexattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dstQueueFamilyIndex- Returns:
- A modified copy or the
thisobject
-
withImage
Copy the current immutable object by setting a value for theimageattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for image- Returns:
- A modified copy or the
thisobject
-
withSubresourceRange
Copy the current immutable object by setting a value for thesubresourceRangeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for subresourceRange- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanImageMemoryBarrierTypevalue. 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 VulkanImageMemoryBarrier instance
-
builder
Creates a builder forVulkanImageMemoryBarrier.VulkanImageMemoryBarrier.builder() .addSrcStageMask|addAllSrcStageMask(com.io7m.jcoronado.api.VulkanPipelineStageFlag) //
srcStageMaskelements .addSrcAccessMask|addAllSrcAccessMask(com.io7m.jcoronado.api.VulkanAccessFlag) //srcAccessMaskelements .addDstStageMask|addAllDstStageMask(com.io7m.jcoronado.api.VulkanPipelineStageFlag) //dstStageMaskelements .addDstAccessMask|addAllDstAccessMask(com.io7m.jcoronado.api.VulkanAccessFlag) //dstAccessMaskelements .setOldLayout(com.io7m.jcoronado.api.VulkanImageLayout) // requiredoldLayout.setNewLayout(com.io7m.jcoronado.api.VulkanImageLayout) // requirednewLayout.setSrcQueueFamilyIndex(com.io7m.jcoronado.api.VulkanQueueFamilyIndex) // requiredsrcQueueFamilyIndex.setDstQueueFamilyIndex(com.io7m.jcoronado.api.VulkanQueueFamilyIndex) // requireddstQueueFamilyIndex.setImage(com.io7m.jcoronado.api.VulkanImageType) // requiredimage.setSubresourceRange(com.io7m.jcoronado.api.VulkanImageSubresourceRange) // requiredsubresourceRange.build();- Returns:
- A new VulkanImageMemoryBarrier builder
-