Class VulkanPipelineViewportStateCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanPipelineViewportStateCreateInfo
- All Implemented Interfaces:
VulkanPipelineViewportStateCreateInfoType
public final class VulkanPipelineViewportStateCreateInfo
extends Object
implements VulkanPipelineViewportStateCreateInfoType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanPipelineViewportStateCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanPipelineViewportStateCreateInfo.Creates an immutable copy of aVulkanPipelineViewportStateCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanPipelineViewportStateCreateInfothat have equal attribute values.flags()inthashCode()Computes a hash code from attributes:flags,viewports,scissors.of(Iterable<VulkanPipelineViewportStateCreateFlag> flags, Iterable<? extends VulkanViewport> viewports, Iterable<? extends VulkanRectangle2D> scissors) Construct a new immutableVulkanPipelineViewportStateCreateInfoinstance.of(Set<VulkanPipelineViewportStateCreateFlag> flags, List<VulkanViewport> viewports, List<VulkanRectangle2D> scissors) Construct a new immutableVulkanPipelineViewportStateCreateInfoinstance.scissors()toString()Prints the immutable valueVulkanPipelineViewportStateCreateInfowith attribute values.withFlags(VulkanPipelineViewportStateCreateFlag... elements) Copy the current immutable object with elements that replace the content offlags.Copy the current immutable object with elements that replace the content offlags.withScissors(VulkanRectangle2D... elements) Copy the current immutable object with elements that replace the content ofscissors.withScissors(Iterable<? extends VulkanRectangle2D> elements) Copy the current immutable object with elements that replace the content ofscissors.withViewports(VulkanViewport... elements) Copy the current immutable object with elements that replace the content ofviewports.withViewports(Iterable<? extends VulkanViewport> elements) Copy the current immutable object with elements that replace the content ofviewports.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanPipelineViewportStateCreateInfoType- Returns:
- Flags reserved for future use
-
viewports
- Specified by:
viewportsin interfaceVulkanPipelineViewportStateCreateInfoType- Returns:
- The viewport transforms.
-
scissors
- Specified by:
scissorsin 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
thisobject
-
withFlags
public final VulkanPipelineViewportStateCreateInfo withFlags(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
thisobject
-
withViewports
Copy the current immutable object with elements that replace the content ofviewports.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withViewports
public final VulkanPipelineViewportStateCreateInfo withViewports(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
thisobject
-
withScissors
Copy the current immutable object with elements that replace the content ofscissors.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withScissors
public final VulkanPipelineViewportStateCreateInfo withScissors(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
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanPipelineViewportStateCreateInfo of(Set<VulkanPipelineViewportStateCreateFlag> flags, List<VulkanViewport> viewports, List<VulkanRectangle2D> scissors) Construct a new immutableVulkanPipelineViewportStateCreateInfoinstance.- Parameters:
flags- The value for theflagsattributeviewports- The value for theviewportsattributescissors- The value for thescissorsattribute- Returns:
- An immutable VulkanPipelineViewportStateCreateInfo instance
-
of
public static VulkanPipelineViewportStateCreateInfo of(Iterable<VulkanPipelineViewportStateCreateFlag> flags, Iterable<? extends VulkanViewport> viewports, Iterable<? extends VulkanRectangle2D> scissors) Construct a new immutableVulkanPipelineViewportStateCreateInfoinstance.- Parameters:
flags- The value for theflagsattributeviewports- The value for theviewportsattributescissors- The value for thescissorsattribute- Returns:
- An immutable VulkanPipelineViewportStateCreateInfo instance
-
copyOf
public static VulkanPipelineViewportStateCreateInfo copyOf(VulkanPipelineViewportStateCreateInfoType instance) Creates an immutable copy of aVulkanPipelineViewportStateCreateInfoTypevalue. 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
Creates a builder forVulkanPipelineViewportStateCreateInfo.VulkanPipelineViewportStateCreateInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanPipelineViewportStateCreateFlag) //flagselements .addViewports|addAllViewports(VulkanViewport) //viewportselements .addScissors|addAllScissors(VulkanRectangle2D) //scissorselements .build();- Returns:
- A new VulkanPipelineViewportStateCreateInfo builder
-