Class VulkanRenderPassBeginInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanRenderPassBeginInfo
- All Implemented Interfaces:
VulkanRenderPassBeginInfoType
public final class VulkanRenderPassBeginInfo
extends Object
implements VulkanRenderPassBeginInfoType
Structure specifying how to begin a render pass.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeVulkanRenderPassBeginInfo
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forVulkanRenderPassBeginInfo
.static VulkanRenderPassBeginInfo
copyOf
(VulkanRenderPassBeginInfoType instance) Creates an immutable copy of aVulkanRenderPassBeginInfoType
value.boolean
This instance is equal to all instances ofVulkanRenderPassBeginInfo
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:renderPass
,framebuffer
,renderArea
,clearValues
.static VulkanRenderPassBeginInfo
of
(VulkanRenderPassType renderPass, VulkanFramebufferType framebuffer, VulkanRectangle2D renderArea, Iterable<? extends VulkanClearValueType> clearValues) Construct a new immutableVulkanRenderPassBeginInfo
instance.static VulkanRenderPassBeginInfo
of
(VulkanRenderPassType renderPass, VulkanFramebufferType framebuffer, VulkanRectangle2D renderArea, List<VulkanClearValueType> clearValues) Construct a new immutableVulkanRenderPassBeginInfo
instance.toString()
Prints the immutable valueVulkanRenderPassBeginInfo
with attribute values.withClearValues
(VulkanClearValueType... elements) Copy the current immutable object with elements that replace the content ofclearValues
.withClearValues
(Iterable<? extends VulkanClearValueType> elements) Copy the current immutable object with elements that replace the content ofclearValues
.Copy the current immutable object by setting a value for theframebuffer
attribute.withRenderArea
(VulkanRectangle2D value) Copy the current immutable object by setting a value for therenderArea
attribute.Copy the current immutable object by setting a value for therenderPass
attribute.
-
Method Details
-
renderPass
- Specified by:
renderPass
in interfaceVulkanRenderPassBeginInfoType
- Returns:
- The render pass
-
framebuffer
- Specified by:
framebuffer
in interfaceVulkanRenderPassBeginInfoType
- Returns:
- The render pass framebuffer
-
renderArea
- Specified by:
renderArea
in interfaceVulkanRenderPassBeginInfoType
- Returns:
- The area to which rendering will occur
-
clearValues
- Specified by:
clearValues
in interfaceVulkanRenderPassBeginInfoType
- Returns:
- The clear values for each attachment
-
withRenderPass
Copy the current immutable object by setting a value for therenderPass
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for renderPass- Returns:
- A modified copy of the
this
object
-
withFramebuffer
Copy the current immutable object by setting a value for theframebuffer
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for framebuffer- Returns:
- A modified copy of the
this
object
-
withRenderArea
Copy the current immutable object by setting a value for therenderArea
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for renderArea- Returns:
- A modified copy of the
this
object
-
withClearValues
Copy the current immutable object with elements that replace the content ofclearValues
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withClearValues
public final VulkanRenderPassBeginInfo withClearValues(Iterable<? extends VulkanClearValueType> elements) Copy the current immutable object with elements that replace the content ofclearValues
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of clearValues elements to set- Returns:
- A modified copy of
this
object
-
equals
-
hashCode
-
toString
-
of
public static VulkanRenderPassBeginInfo of(VulkanRenderPassType renderPass, VulkanFramebufferType framebuffer, VulkanRectangle2D renderArea, List<VulkanClearValueType> clearValues) Construct a new immutableVulkanRenderPassBeginInfo
instance.- Parameters:
renderPass
- The value for therenderPass
attributeframebuffer
- The value for theframebuffer
attributerenderArea
- The value for therenderArea
attributeclearValues
- The value for theclearValues
attribute- Returns:
- An immutable VulkanRenderPassBeginInfo instance
-
of
public static VulkanRenderPassBeginInfo of(VulkanRenderPassType renderPass, VulkanFramebufferType framebuffer, VulkanRectangle2D renderArea, Iterable<? extends VulkanClearValueType> clearValues) Construct a new immutableVulkanRenderPassBeginInfo
instance.- Parameters:
renderPass
- The value for therenderPass
attributeframebuffer
- The value for theframebuffer
attributerenderArea
- The value for therenderArea
attributeclearValues
- The value for theclearValues
attribute- Returns:
- An immutable VulkanRenderPassBeginInfo instance
-
copyOf
Creates an immutable copy of aVulkanRenderPassBeginInfoType
value. 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 VulkanRenderPassBeginInfo instance
-
builder
Creates a builder forVulkanRenderPassBeginInfo
.VulkanRenderPassBeginInfo.builder() .setRenderPass(com.io7m.jcoronado.api.VulkanRenderPassType) // required
renderPass
.setFramebuffer(com.io7m.jcoronado.api.VulkanFramebufferType) // requiredframebuffer
.setRenderArea(com.io7m.jcoronado.api.VulkanRectangle2D) // requiredrenderArea
.addClearValues|addAllClearValues(com.io7m.jcoronado.api.VulkanClearValueType) //clearValues
elements .build();- Returns:
- A new VulkanRenderPassBeginInfo builder
-