Class VulkanPipelineRenderingCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanPipelineRenderingCreateInfo
- All Implemented Interfaces:
VulkanPipelineRenderingCreateInfoType
public final class VulkanPipelineRenderingCreateInfo
extends Object
implements VulkanPipelineRenderingCreateInfoType
Structure specifying parameters of a pipeline for dynamic rendering.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanPipelineRenderingCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanPipelineRenderingCreateInfo.copyOf(VulkanPipelineRenderingCreateInfoType instance) Creates an immutable copy of aVulkanPipelineRenderingCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanPipelineRenderingCreateInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:colorAttachmentFormats,depthAttachmentFormat,stencilAttachmentFormat,viewMask.toString()Prints the immutable valueVulkanPipelineRenderingCreateInfowith attribute values.longviewMask()withColorAttachmentFormats(VulkanFormat... elements) Copy the current immutable object with elements that replace the content ofcolorAttachmentFormats.withColorAttachmentFormats(Iterable<? extends VulkanFormat> elements) Copy the current immutable object with elements that replace the content ofcolorAttachmentFormats.Copy the current immutable object by setting a present value for the optionaldepthAttachmentFormatattribute.withDepthAttachmentFormat(Optional<? extends VulkanFormat> optional) Copy the current immutable object by setting an optional value for thedepthAttachmentFormatattribute.Copy the current immutable object by setting a present value for the optionalstencilAttachmentFormatattribute.withStencilAttachmentFormat(Optional<? extends VulkanFormat> optional) Copy the current immutable object by setting an optional value for thestencilAttachmentFormatattribute.withViewMask(long value) Copy the current immutable object by setting a value for theviewMaskattribute.
-
Method Details
-
colorAttachmentFormats
- Specified by:
colorAttachmentFormatsin interfaceVulkanPipelineRenderingCreateInfoType- Returns:
- The formats of the color attachments
-
depthAttachmentFormat
- Specified by:
depthAttachmentFormatin interfaceVulkanPipelineRenderingCreateInfoType- Returns:
- The format of the depth attachment
-
stencilAttachmentFormat
- Specified by:
stencilAttachmentFormatin interfaceVulkanPipelineRenderingCreateInfoType- Returns:
- The format of the stencil attachment
-
viewMask
public long viewMask()- Specified by:
viewMaskin interfaceVulkanPipelineRenderingCreateInfoType- Returns:
- A bitfield of view indices describing which views are active during rendering. It must match VkRenderingInfo::viewMask when rendering.
-
withColorAttachmentFormats
Copy the current immutable object with elements that replace the content ofcolorAttachmentFormats.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withColorAttachmentFormats
public final VulkanPipelineRenderingCreateInfo withColorAttachmentFormats(Iterable<? extends VulkanFormat> elements) Copy the current immutable object with elements that replace the content ofcolorAttachmentFormats. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of colorAttachmentFormats elements to set- Returns:
- A modified copy or
thisif not changed
-
withDepthAttachmentFormat
Copy the current immutable object by setting a present value for the optionaldepthAttachmentFormatattribute.- Parameters:
value- The value for depthAttachmentFormat- Returns:
- A modified copy or
thisif not changed
-
withDepthAttachmentFormat
public final VulkanPipelineRenderingCreateInfo withDepthAttachmentFormat(Optional<? extends VulkanFormat> optional) Copy the current immutable object by setting an optional value for thedepthAttachmentFormatattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for depthAttachmentFormat- Returns:
- A modified copy or
thisif not changed
-
withStencilAttachmentFormat
Copy the current immutable object by setting a present value for the optionalstencilAttachmentFormatattribute.- Parameters:
value- The value for stencilAttachmentFormat- Returns:
- A modified copy or
thisif not changed
-
withStencilAttachmentFormat
public final VulkanPipelineRenderingCreateInfo withStencilAttachmentFormat(Optional<? extends VulkanFormat> optional) Copy the current immutable object by setting an optional value for thestencilAttachmentFormatattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for stencilAttachmentFormat- Returns:
- A modified copy or
thisif not changed
-
withViewMask
Copy the current immutable object by setting a value for theviewMaskattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for viewMask- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
public static VulkanPipelineRenderingCreateInfo copyOf(VulkanPipelineRenderingCreateInfoType instance) Creates an immutable copy of aVulkanPipelineRenderingCreateInfoTypevalue. 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 VulkanPipelineRenderingCreateInfo instance
-
builder
Creates a builder forVulkanPipelineRenderingCreateInfo.VulkanPipelineRenderingCreateInfo.builder() .addColorAttachmentFormats|addAllColorAttachmentFormats(com.io7m.jcoronado.api.VulkanFormat) //
colorAttachmentFormatselements .setDepthAttachmentFormat(Optional<com.io7m.jcoronado.api.VulkanFormat>) // optionaldepthAttachmentFormat.setStencilAttachmentFormat(Optional<com.io7m.jcoronado.api.VulkanFormat>) // optionalstencilAttachmentFormat.setViewMask(long) // optionalviewMask.build();- Returns:
- A new VulkanPipelineRenderingCreateInfo builder
-