Class VulkanQueryPoolCreateInfo.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanQueryPoolCreateInfo.Builder
- Enclosing class:
VulkanQueryPoolCreateInfo
Builds instances of type
VulkanQueryPoolCreateInfo.
Initialize attributes and then invoke the build() 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
Modifier and TypeMethodDescriptionaddAllFlags(Iterable<VulkanQueryPoolCreateFlag> elements) Adds elements toflagsset.Adds elements topipelineStatisticsset.addFlags(VulkanQueryPoolCreateFlag element) Adds one element toflagsset.addFlags(VulkanQueryPoolCreateFlag... elements) Adds elements toflagsset.Adds one element topipelineStatisticsset.addPipelineStatistics(VulkanQueryPipelineStatisticFlag... elements) Adds elements topipelineStatisticsset.build()Builds a newVulkanQueryPoolCreateInfo.from(VulkanQueryPoolCreateInfoType instance) Fill a builder with attribute values from the providedVulkanQueryPoolCreateInfoTypeinstance.setFlags(Iterable<VulkanQueryPoolCreateFlag> elements) Sets or replaces all elements forflagsset.Sets or replaces all elements forpipelineStatisticsset.setQueryCount(int queryCount) Initializes the value for thequeryCountattribute.setQueryType(VulkanQueryKind queryType) Initializes the value for thequeryTypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanQueryPoolCreateInfoTypeinstance. 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:
thisbuilder for use in a chained invocation
-
addFlags
Adds one element toflagsset.- Parameters:
element- A flags element- Returns:
thisbuilder for use in a chained invocation
-
addFlags
Adds elements toflagsset.- Parameters:
elements- An array of flags elements- Returns:
thisbuilder for use in a chained invocation
-
setFlags
public final VulkanQueryPoolCreateInfo.Builder setFlags(Iterable<VulkanQueryPoolCreateFlag> elements) Sets or replaces all elements forflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
addAllFlags
public final VulkanQueryPoolCreateInfo.Builder addAllFlags(Iterable<VulkanQueryPoolCreateFlag> elements) Adds elements toflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
setQueryType
Initializes the value for thequeryTypeattribute.- Parameters:
queryType- The value for queryType- Returns:
thisbuilder for use in a chained invocation
-
setQueryCount
Initializes the value for thequeryCountattribute.If not set, this attribute will have a default value as returned by the initializer of
queryCount.- Parameters:
queryCount- The value for queryCount- Returns:
thisbuilder for use in a chained invocation
-
addPipelineStatistics
public final VulkanQueryPoolCreateInfo.Builder addPipelineStatistics(VulkanQueryPipelineStatisticFlag element) Adds one element topipelineStatisticsset.- Parameters:
element- A pipelineStatistics element- Returns:
thisbuilder for use in a chained invocation
-
addPipelineStatistics
public final VulkanQueryPoolCreateInfo.Builder addPipelineStatistics(VulkanQueryPipelineStatisticFlag... elements) Adds elements topipelineStatisticsset.- Parameters:
elements- An array of pipelineStatistics elements- Returns:
thisbuilder for use in a chained invocation
-
setPipelineStatistics
public final VulkanQueryPoolCreateInfo.Builder setPipelineStatistics(Iterable<VulkanQueryPipelineStatisticFlag> elements) Sets or replaces all elements forpipelineStatisticsset.- Parameters:
elements- An iterable of pipelineStatistics elements- Returns:
thisbuilder for use in a chained invocation
-
addAllPipelineStatistics
public final VulkanQueryPoolCreateInfo.Builder addAllPipelineStatistics(Iterable<VulkanQueryPipelineStatisticFlag> elements) Adds elements topipelineStatisticsset.- Parameters:
elements- An iterable of pipelineStatistics elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanQueryPoolCreateInfo.- Returns:
- An immutable instance of VulkanQueryPoolCreateInfo
- Throws:
IllegalStateException- if any required attributes are missing
-