- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanRenderPassBeginInfo
-
- All Implemented Interfaces:
VulkanRenderPassBeginInfoType
public final class VulkanRenderPassBeginInfo extends java.lang.Object implements VulkanRenderPassBeginInfoType
Structure specifying how to begin a render pass.- See Also:
- "VkRenderPassBeginInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanRenderPassBeginInfo.Builder
Builds instances of typeVulkanRenderPassBeginInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanRenderPassBeginInfo.Builder
builder()
Creates a builder forVulkanRenderPassBeginInfo
.java.util.List<VulkanClearValueType>
clearValues()
static VulkanRenderPassBeginInfo
copyOf(VulkanRenderPassBeginInfoType instance)
Creates an immutable copy of aVulkanRenderPassBeginInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanRenderPassBeginInfo
that have equal attribute values.VulkanFramebufferType
framebuffer()
int
hashCode()
Computes a hash code from attributes:renderPass
,framebuffer
,renderArea
,clearValues
.static VulkanRenderPassBeginInfo
of(VulkanRenderPassType renderPass, VulkanFramebufferType framebuffer, VulkanRectangle2D renderArea, java.lang.Iterable<? extends VulkanClearValueType> clearValues)
Construct a new immutableVulkanRenderPassBeginInfo
instance.static VulkanRenderPassBeginInfo
of(VulkanRenderPassType renderPass, VulkanFramebufferType framebuffer, VulkanRectangle2D renderArea, java.util.List<VulkanClearValueType> clearValues)
Construct a new immutableVulkanRenderPassBeginInfo
instance.VulkanRectangle2D
renderArea()
VulkanRenderPassType
renderPass()
java.lang.String
toString()
Prints the immutable valueVulkanRenderPassBeginInfo
with attribute values.VulkanRenderPassBeginInfo
withClearValues(VulkanClearValueType... elements)
Copy the current immutable object with elements that replace the content ofclearValues
.VulkanRenderPassBeginInfo
withClearValues(java.lang.Iterable<? extends VulkanClearValueType> elements)
Copy the current immutable object with elements that replace the content ofclearValues
.VulkanRenderPassBeginInfo
withFramebuffer(VulkanFramebufferType value)
Copy the current immutable object by setting a value for theframebuffer
attribute.VulkanRenderPassBeginInfo
withRenderArea(VulkanRectangle2D value)
Copy the current immutable object by setting a value for therenderArea
attribute.VulkanRenderPassBeginInfo
withRenderPass(VulkanRenderPassType value)
Copy the current immutable object by setting a value for therenderPass
attribute.
-
-
-
Method Detail
-
renderPass
public VulkanRenderPassType renderPass()
- Specified by:
renderPass
in interfaceVulkanRenderPassBeginInfoType
- Returns:
- The render pass
-
framebuffer
public VulkanFramebufferType framebuffer()
- Specified by:
framebuffer
in interfaceVulkanRenderPassBeginInfoType
- Returns:
- The render pass framebuffer
-
renderArea
public VulkanRectangle2D renderArea()
- Specified by:
renderArea
in interfaceVulkanRenderPassBeginInfoType
- Returns:
- The area to which rendering will occur
-
clearValues
public java.util.List<VulkanClearValueType> clearValues()
- Specified by:
clearValues
in interfaceVulkanRenderPassBeginInfoType
- Returns:
- The clear values for each attachment
-
withRenderPass
public final VulkanRenderPassBeginInfo withRenderPass(VulkanRenderPassType value)
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
public final VulkanRenderPassBeginInfo withFramebuffer(VulkanFramebufferType value)
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
public final VulkanRenderPassBeginInfo withRenderArea(VulkanRectangle2D value)
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
public final VulkanRenderPassBeginInfo withClearValues(VulkanClearValueType... elements)
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(java.lang.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
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanRenderPassBeginInfo
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()
Computes a hash code from attributes:renderPass
,framebuffer
,renderArea
,clearValues
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanRenderPassBeginInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanRenderPassBeginInfo of(VulkanRenderPassType renderPass, VulkanFramebufferType framebuffer, VulkanRectangle2D renderArea, java.util.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, java.lang.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
public static VulkanRenderPassBeginInfo copyOf(VulkanRenderPassBeginInfoType instance)
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
public static VulkanRenderPassBeginInfo.Builder builder()
Creates a builder forVulkanRenderPassBeginInfo
.- Returns:
- A new VulkanRenderPassBeginInfo builder
-
-