Class VulkanImageSubresourceLayers
java.lang.Object
com.io7m.jcoronado.api.VulkanImageSubresourceLayers
- All Implemented Interfaces:
VulkanImageSubresourceLayersType
public final class VulkanImageSubresourceLayers
extends Object
implements VulkanImageSubresourceLayersType
Structure specifying a image subresource layers.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanImageSubresourceLayers. -
Method Summary
Modifier and TypeMethodDescriptionintbuilder()Creates a builder forVulkanImageSubresourceLayers.static VulkanImageSubresourceLayerscopyOf(VulkanImageSubresourceLayersType instance) Creates an immutable copy of aVulkanImageSubresourceLayersTypevalue.booleanThis instance is equal to all instances ofVulkanImageSubresourceLayersthat have equal attribute values.inthashCode()Computes a hash code from attributes:aspectMask,mipLevel,baseArrayLayer,layerCount.intintmipLevel()toString()Prints the immutable valueVulkanImageSubresourceLayerswith attribute values.withAspectMask(VulkanImageAspectFlag... elements) Copy the current immutable object with elements that replace the content ofaspectMask.withAspectMask(Iterable<VulkanImageAspectFlag> elements) Copy the current immutable object with elements that replace the content ofaspectMask.withBaseArrayLayer(int value) Copy the current immutable object by setting a value for thebaseArrayLayerattribute.withLayerCount(int value) Copy the current immutable object by setting a value for thelayerCountattribute.withMipLevel(int value) Copy the current immutable object by setting a value for themipLevelattribute.
-
Method Details
-
aspectMask
- Specified by:
aspectMaskin interfaceVulkanImageSubresourceLayersType- Returns:
- a combination of flags selecting the color, depth, and/or stencil aspects to be copied.
-
mipLevel
public int mipLevel()- Specified by:
mipLevelin interfaceVulkanImageSubresourceLayersType- Returns:
- The mipmap level to copy from.
-
baseArrayLayer
public int baseArrayLayer()- Specified by:
baseArrayLayerin interfaceVulkanImageSubresourceLayersType- Returns:
- The starting layer to copy.
-
layerCount
public int layerCount()- Specified by:
layerCountin interfaceVulkanImageSubresourceLayersType- Returns:
- The number of layers to copy.
-
withAspectMask
Copy the current immutable object with elements that replace the content ofaspectMask.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withAspectMask
Copy the current immutable object with elements that replace the content ofaspectMask. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of aspectMask elements to set- Returns:
- A modified copy or
thisif not changed
-
withMipLevel
Copy the current immutable object by setting a value for themipLevelattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for mipLevel- Returns:
- A modified copy or the
thisobject
-
withBaseArrayLayer
Copy the current immutable object by setting a value for thebaseArrayLayerattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for baseArrayLayer- Returns:
- A modified copy or the
thisobject
-
withLayerCount
Copy the current immutable object by setting a value for thelayerCountattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for layerCount- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanImageSubresourceLayersTypevalue. 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 VulkanImageSubresourceLayers instance
-
builder
Creates a builder forVulkanImageSubresourceLayers.VulkanImageSubresourceLayers.builder() .addAspectMask|addAllAspectMask(com.io7m.jcoronado.api.VulkanImageAspectFlag) //
aspectMaskelements .setMipLevel(int) // optionalmipLevel.setBaseArrayLayer(int) // optionalbaseArrayLayer.setLayerCount(int) // optionallayerCount.build();- Returns:
- A new VulkanImageSubresourceLayers builder
-