Class VulkanPhysicalDeviceFeatures11.Builder
- Enclosing class:
VulkanPhysicalDeviceFeatures11
VulkanPhysicalDeviceFeatures11.
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 TypeMethodDescriptionbuild()Builds a newVulkanPhysicalDeviceFeatures11.from(VulkanPhysicalDeviceFeatures11Type instance) Fill a builder with attribute values from the providedVulkanPhysicalDeviceFeatures11Typeinstance.setMultiview(boolean multiview) Initializes the value for themultiviewattribute.setMultiviewGeometryShader(boolean multiviewGeometryShader) Initializes the value for themultiviewGeometryShaderattribute.setMultiviewTessellationShader(boolean multiviewTessellationShader) Initializes the value for themultiviewTessellationShaderattribute.setProtectedMemory(boolean protectedMemory) Initializes the value for theprotectedMemoryattribute.setSamplerYcbcrConversion(boolean samplerYcbcrConversion) Initializes the value for thesamplerYcbcrConversionattribute.setShaderDrawParameters(boolean shaderDrawParameters) Initializes the value for theshaderDrawParametersattribute.setStorageBuffer16BitAccess(boolean storageBuffer16BitAccess) Initializes the value for thestorageBuffer16BitAccessattribute.setStorageInputOutput16(boolean storageInputOutput16) Initializes the value for thestorageInputOutput16attribute.setStoragePushConstant16(boolean storagePushConstant16) Initializes the value for thestoragePushConstant16attribute.setUniformAndStorageBuffer16BitAccess(boolean uniformAndStorageBuffer16BitAccess) Initializes the value for theuniformAndStorageBuffer16BitAccessattribute.setVariablePointers(boolean variablePointers) Initializes the value for thevariablePointersattribute.setVariablePointersStorageBuffer(boolean variablePointersStorageBuffer) Initializes the value for thevariablePointersStorageBufferattribute.
-
Method Details
-
from
public final VulkanPhysicalDeviceFeatures11.Builder from(VulkanPhysicalDeviceFeatures11Type instance) Fill a builder with attribute values from the providedVulkanPhysicalDeviceFeatures11Typeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setMultiview
-
setMultiviewGeometryShader
public final VulkanPhysicalDeviceFeatures11.Builder setMultiviewGeometryShader(boolean multiviewGeometryShader) Initializes the value for themultiviewGeometryShaderattribute.If not set, this attribute will have a default value as returned by the initializer of
multiviewGeometryShader.- Parameters:
multiviewGeometryShader- The value for multiviewGeometryShader- Returns:
thisbuilder for use in a chained invocation
-
setMultiviewTessellationShader
public final VulkanPhysicalDeviceFeatures11.Builder setMultiviewTessellationShader(boolean multiviewTessellationShader) Initializes the value for themultiviewTessellationShaderattribute.If not set, this attribute will have a default value as returned by the initializer of
multiviewTessellationShader.- Parameters:
multiviewTessellationShader- The value for multiviewTessellationShader- Returns:
thisbuilder for use in a chained invocation
-
setProtectedMemory
Initializes the value for theprotectedMemoryattribute.If not set, this attribute will have a default value as returned by the initializer of
protectedMemory.- Parameters:
protectedMemory- The value for protectedMemory- Returns:
thisbuilder for use in a chained invocation
-
setSamplerYcbcrConversion
public final VulkanPhysicalDeviceFeatures11.Builder setSamplerYcbcrConversion(boolean samplerYcbcrConversion) Initializes the value for thesamplerYcbcrConversionattribute.If not set, this attribute will have a default value as returned by the initializer of
samplerYcbcrConversion.- Parameters:
samplerYcbcrConversion- The value for samplerYcbcrConversion- Returns:
thisbuilder for use in a chained invocation
-
setShaderDrawParameters
public final VulkanPhysicalDeviceFeatures11.Builder setShaderDrawParameters(boolean shaderDrawParameters) Initializes the value for theshaderDrawParametersattribute.If not set, this attribute will have a default value as returned by the initializer of
shaderDrawParameters.- Parameters:
shaderDrawParameters- The value for shaderDrawParameters- Returns:
thisbuilder for use in a chained invocation
-
setStorageBuffer16BitAccess
public final VulkanPhysicalDeviceFeatures11.Builder setStorageBuffer16BitAccess(boolean storageBuffer16BitAccess) Initializes the value for thestorageBuffer16BitAccessattribute.If not set, this attribute will have a default value as returned by the initializer of
storageBuffer16BitAccess.- Parameters:
storageBuffer16BitAccess- The value for storageBuffer16BitAccess- Returns:
thisbuilder for use in a chained invocation
-
setStorageInputOutput16
public final VulkanPhysicalDeviceFeatures11.Builder setStorageInputOutput16(boolean storageInputOutput16) Initializes the value for thestorageInputOutput16attribute.If not set, this attribute will have a default value as returned by the initializer of
storageInputOutput16.- Parameters:
storageInputOutput16- The value for storageInputOutput16- Returns:
thisbuilder for use in a chained invocation
-
setStoragePushConstant16
public final VulkanPhysicalDeviceFeatures11.Builder setStoragePushConstant16(boolean storagePushConstant16) Initializes the value for thestoragePushConstant16attribute.If not set, this attribute will have a default value as returned by the initializer of
storagePushConstant16.- Parameters:
storagePushConstant16- The value for storagePushConstant16- Returns:
thisbuilder for use in a chained invocation
-
setUniformAndStorageBuffer16BitAccess
public final VulkanPhysicalDeviceFeatures11.Builder setUniformAndStorageBuffer16BitAccess(boolean uniformAndStorageBuffer16BitAccess) Initializes the value for theuniformAndStorageBuffer16BitAccessattribute.If not set, this attribute will have a default value as returned by the initializer of
uniformAndStorageBuffer16BitAccess.- Parameters:
uniformAndStorageBuffer16BitAccess- The value for uniformAndStorageBuffer16BitAccess- Returns:
thisbuilder for use in a chained invocation
-
setVariablePointers
Initializes the value for thevariablePointersattribute.If not set, this attribute will have a default value as returned by the initializer of
variablePointers.- Parameters:
variablePointers- The value for variablePointers- Returns:
thisbuilder for use in a chained invocation
-
setVariablePointersStorageBuffer
public final VulkanPhysicalDeviceFeatures11.Builder setVariablePointersStorageBuffer(boolean variablePointersStorageBuffer) Initializes the value for thevariablePointersStorageBufferattribute.If not set, this attribute will have a default value as returned by the initializer of
variablePointersStorageBuffer.- Parameters:
variablePointersStorageBuffer- The value for variablePointersStorageBuffer- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanPhysicalDeviceFeatures11.- Returns:
- An immutable instance of VulkanPhysicalDeviceFeatures11
- Throws:
IllegalStateException- if any required attributes are missing
-