- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanQueryPoolCreateInfo
-
- All Implemented Interfaces:
VulkanQueryPoolCreateInfoType
public final class VulkanQueryPoolCreateInfo extends java.lang.Object implements VulkanQueryPoolCreateInfoType
Structure specifying parameters of a newly created query pool.- See Also:
- "VkQueryPoolCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanQueryPoolCreateInfo.Builder
Builds instances of typeVulkanQueryPoolCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanQueryPoolCreateInfo.Builder
builder()
Creates a builder forVulkanQueryPoolCreateInfo
.static VulkanQueryPoolCreateInfo
copyOf(VulkanQueryPoolCreateInfoType instance)
Creates an immutable copy of aVulkanQueryPoolCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanQueryPoolCreateInfo
that have equal attribute values.java.util.Set<VulkanQueryPoolCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,queryType
,queryCount
,pipelineStatistics
.static VulkanQueryPoolCreateInfo
of(java.lang.Iterable<VulkanQueryPoolCreateFlag> flags, VulkanQueryKind queryType, int queryCount, java.lang.Iterable<VulkanQueryPipelineStatisticFlag> pipelineStatistics)
Construct a new immutableVulkanQueryPoolCreateInfo
instance.static VulkanQueryPoolCreateInfo
of(java.util.Set<VulkanQueryPoolCreateFlag> flags, VulkanQueryKind queryType, int queryCount, java.util.Set<VulkanQueryPipelineStatisticFlag> pipelineStatistics)
Construct a new immutableVulkanQueryPoolCreateInfo
instance.java.util.Set<VulkanQueryPipelineStatisticFlag>
pipelineStatistics()
int
queryCount()
VulkanQueryKind
queryType()
java.lang.String
toString()
Prints the immutable valueVulkanQueryPoolCreateInfo
with attribute values.VulkanQueryPoolCreateInfo
withFlags(VulkanQueryPoolCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanQueryPoolCreateInfo
withFlags(java.lang.Iterable<VulkanQueryPoolCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanQueryPoolCreateInfo
withPipelineStatistics(VulkanQueryPipelineStatisticFlag... elements)
Copy the current immutable object with elements that replace the content ofpipelineStatistics
.VulkanQueryPoolCreateInfo
withPipelineStatistics(java.lang.Iterable<VulkanQueryPipelineStatisticFlag> elements)
Copy the current immutable object with elements that replace the content ofpipelineStatistics
.VulkanQueryPoolCreateInfo
withQueryCount(int value)
Copy the current immutable object by setting a value for thequeryCount
attribute.VulkanQueryPoolCreateInfo
withQueryType(VulkanQueryKind value)
Copy the current immutable object by setting a value for thequeryType
attribute.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanQueryPoolCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanQueryPoolCreateInfoType
- Returns:
- A set of flags specifying the creation of the pool
-
queryType
public VulkanQueryKind queryType()
- Specified by:
queryType
in interfaceVulkanQueryPoolCreateInfoType
- Returns:
- A value specifying the type of queries managed by the pool.
-
queryCount
public int queryCount()
- Specified by:
queryCount
in interfaceVulkanQueryPoolCreateInfoType
- Returns:
- The number of queries managed by the pool.
-
pipelineStatistics
public java.util.Set<VulkanQueryPipelineStatisticFlag> pipelineStatistics()
- Specified by:
pipelineStatistics
in interfaceVulkanQueryPoolCreateInfoType
- Returns:
- A set of flags specifying which counters will be returned in queries on the new pool
-
withFlags
public final VulkanQueryPoolCreateInfo withFlags(VulkanQueryPoolCreateFlag... 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 VulkanQueryPoolCreateInfo withFlags(java.lang.Iterable<VulkanQueryPoolCreateFlag> 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
-
withQueryType
public final VulkanQueryPoolCreateInfo withQueryType(VulkanQueryKind value)
Copy the current immutable object by setting a value for thequeryType
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for queryType- Returns:
- A modified copy of the
this
object
-
withQueryCount
public final VulkanQueryPoolCreateInfo withQueryCount(int value)
Copy the current immutable object by setting a value for thequeryCount
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for queryCount- Returns:
- A modified copy of the
this
object
-
withPipelineStatistics
public final VulkanQueryPoolCreateInfo withPipelineStatistics(VulkanQueryPipelineStatisticFlag... elements)
Copy the current immutable object with elements that replace the content ofpipelineStatistics
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withPipelineStatistics
public final VulkanQueryPoolCreateInfo withPipelineStatistics(java.lang.Iterable<VulkanQueryPipelineStatisticFlag> elements)
Copy the current immutable object with elements that replace the content ofpipelineStatistics
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of pipelineStatistics 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 ofVulkanQueryPoolCreateInfo
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
,queryType
,queryCount
,pipelineStatistics
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanQueryPoolCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanQueryPoolCreateInfo of(java.util.Set<VulkanQueryPoolCreateFlag> flags, VulkanQueryKind queryType, int queryCount, java.util.Set<VulkanQueryPipelineStatisticFlag> pipelineStatistics)
Construct a new immutableVulkanQueryPoolCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributequeryType
- The value for thequeryType
attributequeryCount
- The value for thequeryCount
attributepipelineStatistics
- The value for thepipelineStatistics
attribute- Returns:
- An immutable VulkanQueryPoolCreateInfo instance
-
of
public static VulkanQueryPoolCreateInfo of(java.lang.Iterable<VulkanQueryPoolCreateFlag> flags, VulkanQueryKind queryType, int queryCount, java.lang.Iterable<VulkanQueryPipelineStatisticFlag> pipelineStatistics)
Construct a new immutableVulkanQueryPoolCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributequeryType
- The value for thequeryType
attributequeryCount
- The value for thequeryCount
attributepipelineStatistics
- The value for thepipelineStatistics
attribute- Returns:
- An immutable VulkanQueryPoolCreateInfo instance
-
copyOf
public static VulkanQueryPoolCreateInfo copyOf(VulkanQueryPoolCreateInfoType instance)
Creates an immutable copy of aVulkanQueryPoolCreateInfoType
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 VulkanQueryPoolCreateInfo instance
-
builder
public static VulkanQueryPoolCreateInfo.Builder builder()
Creates a builder forVulkanQueryPoolCreateInfo
.- Returns:
- A new VulkanQueryPoolCreateInfo builder
-
-