Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanPipelineViewportStateCreateInfo
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanPipelineViewportStateCreateInfo
-
- All Implemented Interfaces:
VulkanPipelineViewportStateCreateInfoType
public final class VulkanPipelineViewportStateCreateInfo extends java.lang.Object implements VulkanPipelineViewportStateCreateInfoType
- See Also:
- "VkPipelineViewportStateCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanPipelineViewportStateCreateInfo.Builder
Builds instances of typeVulkanPipelineViewportStateCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanPipelineViewportStateCreateInfo.Builder
builder()
Creates a builder forVulkanPipelineViewportStateCreateInfo
.static VulkanPipelineViewportStateCreateInfo
copyOf(VulkanPipelineViewportStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineViewportStateCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineViewportStateCreateInfo
that have equal attribute values.java.util.Set<VulkanPipelineViewportStateCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,viewports
,scissors
.static VulkanPipelineViewportStateCreateInfo
of(java.lang.Iterable<VulkanPipelineViewportStateCreateFlag> flags, java.lang.Iterable<? extends VulkanViewport> viewports, java.lang.Iterable<? extends VulkanRectangle2D> scissors)
Construct a new immutableVulkanPipelineViewportStateCreateInfo
instance.static VulkanPipelineViewportStateCreateInfo
of(java.util.Set<VulkanPipelineViewportStateCreateFlag> flags, java.util.List<VulkanViewport> viewports, java.util.List<VulkanRectangle2D> scissors)
Construct a new immutableVulkanPipelineViewportStateCreateInfo
instance.java.util.List<VulkanRectangle2D>
scissors()
java.lang.String
toString()
Prints the immutable valueVulkanPipelineViewportStateCreateInfo
with attribute values.java.util.List<VulkanViewport>
viewports()
VulkanPipelineViewportStateCreateInfo
withFlags(VulkanPipelineViewportStateCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineViewportStateCreateInfo
withFlags(java.lang.Iterable<VulkanPipelineViewportStateCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineViewportStateCreateInfo
withScissors(VulkanRectangle2D... elements)
Copy the current immutable object with elements that replace the content ofscissors
.VulkanPipelineViewportStateCreateInfo
withScissors(java.lang.Iterable<? extends VulkanRectangle2D> elements)
Copy the current immutable object with elements that replace the content ofscissors
.VulkanPipelineViewportStateCreateInfo
withViewports(VulkanViewport... elements)
Copy the current immutable object with elements that replace the content ofviewports
.VulkanPipelineViewportStateCreateInfo
withViewports(java.lang.Iterable<? extends VulkanViewport> elements)
Copy the current immutable object with elements that replace the content ofviewports
.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanPipelineViewportStateCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanPipelineViewportStateCreateInfoType
- Returns:
- Flags reserved for future use
-
viewports
public java.util.List<VulkanViewport> viewports()
- Specified by:
viewports
in interfaceVulkanPipelineViewportStateCreateInfoType
- Returns:
- The viewport transforms.
-
scissors
public java.util.List<VulkanRectangle2D> scissors()
- Specified by:
scissors
in interfaceVulkanPipelineViewportStateCreateInfoType
- Returns:
- The scissor for the corresponding viewports.
-
withFlags
public final VulkanPipelineViewportStateCreateInfo withFlags(VulkanPipelineViewportStateCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withFlags
public final VulkanPipelineViewportStateCreateInfo withFlags(java.lang.Iterable<VulkanPipelineViewportStateCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of flags elements to set- Returns:
- A modified copy of
this
object
-
withViewports
public final VulkanPipelineViewportStateCreateInfo withViewports(VulkanViewport... elements)
Copy the current immutable object with elements that replace the content ofviewports
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withViewports
public final VulkanPipelineViewportStateCreateInfo withViewports(java.lang.Iterable<? extends VulkanViewport> elements)
Copy the current immutable object with elements that replace the content ofviewports
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of viewports elements to set- Returns:
- A modified copy of
this
object
-
withScissors
public final VulkanPipelineViewportStateCreateInfo withScissors(VulkanRectangle2D... elements)
Copy the current immutable object with elements that replace the content ofscissors
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withScissors
public final VulkanPipelineViewportStateCreateInfo withScissors(java.lang.Iterable<? extends VulkanRectangle2D> elements)
Copy the current immutable object with elements that replace the content ofscissors
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of scissors 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 ofVulkanPipelineViewportStateCreateInfo
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:flags
,viewports
,scissors
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanPipelineViewportStateCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanPipelineViewportStateCreateInfo of(java.util.Set<VulkanPipelineViewportStateCreateFlag> flags, java.util.List<VulkanViewport> viewports, java.util.List<VulkanRectangle2D> scissors)
Construct a new immutableVulkanPipelineViewportStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributeviewports
- The value for theviewports
attributescissors
- The value for thescissors
attribute- Returns:
- An immutable VulkanPipelineViewportStateCreateInfo instance
-
of
public static VulkanPipelineViewportStateCreateInfo of(java.lang.Iterable<VulkanPipelineViewportStateCreateFlag> flags, java.lang.Iterable<? extends VulkanViewport> viewports, java.lang.Iterable<? extends VulkanRectangle2D> scissors)
Construct a new immutableVulkanPipelineViewportStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributeviewports
- The value for theviewports
attributescissors
- The value for thescissors
attribute- Returns:
- An immutable VulkanPipelineViewportStateCreateInfo instance
-
copyOf
public static VulkanPipelineViewportStateCreateInfo copyOf(VulkanPipelineViewportStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineViewportStateCreateInfoType
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 VulkanPipelineViewportStateCreateInfo instance
-
builder
public static VulkanPipelineViewportStateCreateInfo.Builder builder()
Creates a builder forVulkanPipelineViewportStateCreateInfo
.- Returns:
- A new VulkanPipelineViewportStateCreateInfo builder
-
-