Class VulkanMemoryBarrier
java.lang.Object
com.io7m.jcoronado.api.VulkanMemoryBarrier
- All Implemented Interfaces:
VulkanMemoryBarrierType
Structure specifying the parameters of a global memory barrier.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanMemoryBarrier. -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanMemoryBarrier.Builderbuilder()Creates a builder forVulkanMemoryBarrier.static VulkanMemoryBarriercopyOf(VulkanMemoryBarrierType instance) Creates an immutable copy of aVulkanMemoryBarrierTypevalue.booleanThis instance is equal to all instances ofVulkanMemoryBarrierthat have equal attribute values.inthashCode()Computes a hash code from attributes:srcAccessMask,dstAccessMask.toString()Prints the immutable valueVulkanMemoryBarrierwith attribute values.final VulkanMemoryBarrierwithDstAccessMask(VulkanAccessFlag... elements) Copy the current immutable object with elements that replace the content ofdstAccessMask.final VulkanMemoryBarrierwithDstAccessMask(Iterable<VulkanAccessFlag> elements) Copy the current immutable object with elements that replace the content ofdstAccessMask.final VulkanMemoryBarrierwithSrcAccessMask(VulkanAccessFlag... elements) Copy the current immutable object with elements that replace the content ofsrcAccessMask.final VulkanMemoryBarrierwithSrcAccessMask(Iterable<VulkanAccessFlag> elements) Copy the current immutable object with elements that replace the content ofsrcAccessMask.
-
Method Details
-
srcAccessMask
- Specified by:
srcAccessMaskin interfaceVulkanMemoryBarrierType- Returns:
- The source access mask
-
dstAccessMask
- Specified by:
dstAccessMaskin interfaceVulkanMemoryBarrierType- Returns:
- The destination access mask
-
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
-
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
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanMemoryBarrierTypevalue. 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 VulkanMemoryBarrier instance
-
builder
Creates a builder forVulkanMemoryBarrier.VulkanMemoryBarrier.builder() .addSrcAccessMask|addAllSrcAccessMask(com.io7m.jcoronado.api.VulkanAccessFlag) //
srcAccessMaskelements .addDstAccessMask|addAllDstAccessMask(com.io7m.jcoronado.api.VulkanAccessFlag) //dstAccessMaskelements .build();- Returns:
- A new VulkanMemoryBarrier builder
-