Class VulkanSurfaceCapabilitiesKHR.Builder
java.lang.Object
com.io7m.jcoronado.extensions.khr_surface.api.VulkanSurfaceCapabilitiesKHR.Builder
- Enclosing class:
VulkanSurfaceCapabilitiesKHR
Builds instances of type
VulkanSurfaceCapabilitiesKHR.
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 TypeMethodDescriptionAdds elements tocurrentTransformset.Adds elements tosupportedCompositeAlphaset.Adds elements tosupportedTransformsset.Adds elements tosupportedUsageFlagsset.Adds one element tocurrentTransformset.addCurrentTransform(VulkanSurfaceTransformFlagKHR... elements) Adds elements tocurrentTransformset.Adds one element tosupportedCompositeAlphaset.addSupportedCompositeAlpha(VulkanCompositeAlphaFlagKHR... elements) Adds elements tosupportedCompositeAlphaset.Adds one element tosupportedTransformsset.addSupportedTransforms(VulkanSurfaceTransformFlagKHR... elements) Adds elements tosupportedTransformsset.Adds one element tosupportedUsageFlagsset.addSupportedUsageFlags(VulkanImageUsageFlag... elements) Adds elements tosupportedUsageFlagsset.build()Builds a newVulkanSurfaceCapabilitiesKHR.from(VulkanSurfaceCapabilitiesKHRType instance) Fill a builder with attribute values from the providedVulkanSurfaceCapabilitiesKHRTypeinstance.setCurrentExtent(VulkanExtent2D currentExtent) Initializes the value for thecurrentExtentattribute.Sets or replaces all elements forcurrentTransformset.setMaxImageArrayLayers(int maxImageArrayLayers) Initializes the value for themaxImageArrayLayersattribute.setMaxImageCount(int maxImageCount) Initializes the value for themaxImageCountattribute.setMaxImageExtent(VulkanExtent2D maxImageExtent) Initializes the value for themaxImageExtentattribute.setMinImageCount(int minImageCount) Initializes the value for theminImageCountattribute.setMinImageExtent(VulkanExtent2D minImageExtent) Initializes the value for theminImageExtentattribute.Sets or replaces all elements forsupportedCompositeAlphaset.Sets or replaces all elements forsupportedTransformsset.setSupportedUsageFlags(Iterable<VulkanImageUsageFlag> elements) Sets or replaces all elements forsupportedUsageFlagsset.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanSurfaceCapabilitiesKHRTypeinstance. 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
-
setMinImageCount
Initializes the value for theminImageCountattribute.- Parameters:
minImageCount- The value for minImageCount- Returns:
thisbuilder for use in a chained invocation
-
setMaxImageCount
Initializes the value for themaxImageCountattribute.- Parameters:
maxImageCount- The value for maxImageCount- Returns:
thisbuilder for use in a chained invocation
-
setCurrentExtent
Initializes the value for thecurrentExtentattribute.- Parameters:
currentExtent- The value for currentExtent- Returns:
thisbuilder for use in a chained invocation
-
setMinImageExtent
Initializes the value for theminImageExtentattribute.- Parameters:
minImageExtent- The value for minImageExtent- Returns:
thisbuilder for use in a chained invocation
-
setMaxImageExtent
Initializes the value for themaxImageExtentattribute.- Parameters:
maxImageExtent- The value for maxImageExtent- Returns:
thisbuilder for use in a chained invocation
-
setMaxImageArrayLayers
Initializes the value for themaxImageArrayLayersattribute.- Parameters:
maxImageArrayLayers- The value for maxImageArrayLayers- Returns:
thisbuilder for use in a chained invocation
-
addSupportedTransforms
public final VulkanSurfaceCapabilitiesKHR.Builder addSupportedTransforms(VulkanSurfaceTransformFlagKHR element) Adds one element tosupportedTransformsset.- Parameters:
element- A supportedTransforms element- Returns:
thisbuilder for use in a chained invocation
-
addSupportedTransforms
public final VulkanSurfaceCapabilitiesKHR.Builder addSupportedTransforms(VulkanSurfaceTransformFlagKHR... elements) Adds elements tosupportedTransformsset.- Parameters:
elements- An array of supportedTransforms elements- Returns:
thisbuilder for use in a chained invocation
-
setSupportedTransforms
public final VulkanSurfaceCapabilitiesKHR.Builder setSupportedTransforms(Iterable<VulkanSurfaceTransformFlagKHR> elements) Sets or replaces all elements forsupportedTransformsset.- Parameters:
elements- An iterable of supportedTransforms elements- Returns:
thisbuilder for use in a chained invocation
-
addAllSupportedTransforms
public final VulkanSurfaceCapabilitiesKHR.Builder addAllSupportedTransforms(Iterable<VulkanSurfaceTransformFlagKHR> elements) Adds elements tosupportedTransformsset.- Parameters:
elements- An iterable of supportedTransforms elements- Returns:
thisbuilder for use in a chained invocation
-
addCurrentTransform
public final VulkanSurfaceCapabilitiesKHR.Builder addCurrentTransform(VulkanSurfaceTransformFlagKHR element) Adds one element tocurrentTransformset.- Parameters:
element- A currentTransform element- Returns:
thisbuilder for use in a chained invocation
-
addCurrentTransform
public final VulkanSurfaceCapabilitiesKHR.Builder addCurrentTransform(VulkanSurfaceTransformFlagKHR... elements) Adds elements tocurrentTransformset.- Parameters:
elements- An array of currentTransform elements- Returns:
thisbuilder for use in a chained invocation
-
setCurrentTransform
public final VulkanSurfaceCapabilitiesKHR.Builder setCurrentTransform(Iterable<VulkanSurfaceTransformFlagKHR> elements) Sets or replaces all elements forcurrentTransformset.- Parameters:
elements- An iterable of currentTransform elements- Returns:
thisbuilder for use in a chained invocation
-
addAllCurrentTransform
public final VulkanSurfaceCapabilitiesKHR.Builder addAllCurrentTransform(Iterable<VulkanSurfaceTransformFlagKHR> elements) Adds elements tocurrentTransformset.- Parameters:
elements- An iterable of currentTransform elements- Returns:
thisbuilder for use in a chained invocation
-
addSupportedCompositeAlpha
public final VulkanSurfaceCapabilitiesKHR.Builder addSupportedCompositeAlpha(VulkanCompositeAlphaFlagKHR element) Adds one element tosupportedCompositeAlphaset.- Parameters:
element- A supportedCompositeAlpha element- Returns:
thisbuilder for use in a chained invocation
-
addSupportedCompositeAlpha
public final VulkanSurfaceCapabilitiesKHR.Builder addSupportedCompositeAlpha(VulkanCompositeAlphaFlagKHR... elements) Adds elements tosupportedCompositeAlphaset.- Parameters:
elements- An array of supportedCompositeAlpha elements- Returns:
thisbuilder for use in a chained invocation
-
setSupportedCompositeAlpha
public final VulkanSurfaceCapabilitiesKHR.Builder setSupportedCompositeAlpha(Iterable<VulkanCompositeAlphaFlagKHR> elements) Sets or replaces all elements forsupportedCompositeAlphaset.- Parameters:
elements- An iterable of supportedCompositeAlpha elements- Returns:
thisbuilder for use in a chained invocation
-
addAllSupportedCompositeAlpha
public final VulkanSurfaceCapabilitiesKHR.Builder addAllSupportedCompositeAlpha(Iterable<VulkanCompositeAlphaFlagKHR> elements) Adds elements tosupportedCompositeAlphaset.- Parameters:
elements- An iterable of supportedCompositeAlpha elements- Returns:
thisbuilder for use in a chained invocation
-
addSupportedUsageFlags
public final VulkanSurfaceCapabilitiesKHR.Builder addSupportedUsageFlags(VulkanImageUsageFlag element) Adds one element tosupportedUsageFlagsset.- Parameters:
element- A supportedUsageFlags element- Returns:
thisbuilder for use in a chained invocation
-
addSupportedUsageFlags
public final VulkanSurfaceCapabilitiesKHR.Builder addSupportedUsageFlags(VulkanImageUsageFlag... elements) Adds elements tosupportedUsageFlagsset.- Parameters:
elements- An array of supportedUsageFlags elements- Returns:
thisbuilder for use in a chained invocation
-
setSupportedUsageFlags
public final VulkanSurfaceCapabilitiesKHR.Builder setSupportedUsageFlags(Iterable<VulkanImageUsageFlag> elements) Sets or replaces all elements forsupportedUsageFlagsset.- Parameters:
elements- An iterable of supportedUsageFlags elements- Returns:
thisbuilder for use in a chained invocation
-
addAllSupportedUsageFlags
public final VulkanSurfaceCapabilitiesKHR.Builder addAllSupportedUsageFlags(Iterable<VulkanImageUsageFlag> elements) Adds elements tosupportedUsageFlagsset.- Parameters:
elements- An iterable of supportedUsageFlags elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanSurfaceCapabilitiesKHR.- Returns:
- An immutable instance of VulkanSurfaceCapabilitiesKHR
- Throws:
IllegalStateException- if any required attributes are missing
-