Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanQueryPoolCreateInfo.Builder
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanQueryPoolCreateInfo.Builder
-
- Enclosing class:
- VulkanQueryPoolCreateInfo
public static final class VulkanQueryPoolCreateInfo.Builder extends java.lang.Object
Builds instances of typeVulkanQueryPoolCreateInfo
. Initialize attributes and then invoke thebuild()
method to create an immutable instance.Builder
is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
-
-
-
Method Detail
-
from
public final VulkanQueryPoolCreateInfo.Builder from(VulkanQueryPoolCreateInfoType instance)
Fill a builder with attribute values from the providedVulkanQueryPoolCreateInfoType
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
addFlags
public final VulkanQueryPoolCreateInfo.Builder addFlags(VulkanQueryPoolCreateFlag element)
Adds one element toflags
set.- Parameters:
element
- A flags element- Returns:
this
builder for use in a chained invocation
-
addFlags
public final VulkanQueryPoolCreateInfo.Builder addFlags(VulkanQueryPoolCreateFlag... elements)
Adds elements toflags
set.- Parameters:
elements
- An array of flags elements- Returns:
this
builder for use in a chained invocation
-
setFlags
public final VulkanQueryPoolCreateInfo.Builder setFlags(java.lang.Iterable<VulkanQueryPoolCreateFlag> elements)
Sets or replaces all elements forflags
set.- Parameters:
elements
- An iterable of flags elements- Returns:
this
builder for use in a chained invocation
-
addAllFlags
public final VulkanQueryPoolCreateInfo.Builder addAllFlags(java.lang.Iterable<VulkanQueryPoolCreateFlag> elements)
Adds elements toflags
set.- Parameters:
elements
- An iterable of flags elements- Returns:
this
builder for use in a chained invocation
-
setQueryType
public final VulkanQueryPoolCreateInfo.Builder setQueryType(VulkanQueryKind queryType)
Initializes the value for thequeryType
attribute.- Parameters:
queryType
- The value for queryType- Returns:
this
builder for use in a chained invocation
-
setQueryCount
public final VulkanQueryPoolCreateInfo.Builder setQueryCount(int queryCount)
Initializes the value for thequeryCount
attribute.- Parameters:
queryCount
- The value for queryCount- Returns:
this
builder for use in a chained invocation
-
addPipelineStatistics
public final VulkanQueryPoolCreateInfo.Builder addPipelineStatistics(VulkanQueryPipelineStatisticFlag element)
Adds one element topipelineStatistics
set.- Parameters:
element
- A pipelineStatistics element- Returns:
this
builder for use in a chained invocation
-
addPipelineStatistics
public final VulkanQueryPoolCreateInfo.Builder addPipelineStatistics(VulkanQueryPipelineStatisticFlag... elements)
Adds elements topipelineStatistics
set.- Parameters:
elements
- An array of pipelineStatistics elements- Returns:
this
builder for use in a chained invocation
-
setPipelineStatistics
public final VulkanQueryPoolCreateInfo.Builder setPipelineStatistics(java.lang.Iterable<VulkanQueryPipelineStatisticFlag> elements)
Sets or replaces all elements forpipelineStatistics
set.- Parameters:
elements
- An iterable of pipelineStatistics elements- Returns:
this
builder for use in a chained invocation
-
addAllPipelineStatistics
public final VulkanQueryPoolCreateInfo.Builder addAllPipelineStatistics(java.lang.Iterable<VulkanQueryPipelineStatisticFlag> elements)
Adds elements topipelineStatistics
set.- Parameters:
elements
- An iterable of pipelineStatistics elements- Returns:
this
builder for use in a chained invocation
-
build
public VulkanQueryPoolCreateInfo build()
Builds a newVulkanQueryPoolCreateInfo
.- Returns:
- An immutable instance of VulkanQueryPoolCreateInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-