Class VulkanVertexInputAttributeDescription.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanVertexInputAttributeDescription.Builder
- Enclosing class:
VulkanVertexInputAttributeDescription
Builds instances of type
VulkanVertexInputAttributeDescription.
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 newVulkanVertexInputAttributeDescription.Fill a builder with attribute values from the providedVulkanVertexInputAttributeDescriptionTypeinstance.setBinding(int binding) Initializes the value for thebindingattribute.setFormat(VulkanFormat format) Initializes the value for theformatattribute.setLocation(int location) Initializes the value for thelocationattribute.setOffset(int offset) Initializes the value for theoffsetattribute.
-
Method Details
-
from
public final VulkanVertexInputAttributeDescription.Builder from(VulkanVertexInputAttributeDescriptionType instance) Fill a builder with attribute values from the providedVulkanVertexInputAttributeDescriptionTypeinstance. 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
-
setLocation
-
setBinding
-
setFormat
-
setOffset
-
build
Builds a newVulkanVertexInputAttributeDescription.- Returns:
- An immutable instance of VulkanVertexInputAttributeDescription
- Throws:
IllegalStateException- if any required attributes are missing
-