Class VulkanVertexInputBindingDescription
java.lang.Object
com.io7m.jcoronado.api.VulkanVertexInputBindingDescription
- All Implemented Interfaces:
VulkanVertexInputBindingDescriptionType
public final class VulkanVertexInputBindingDescription
extends Object
implements VulkanVertexInputBindingDescriptionType
Structure specifying vertex input binding description.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanVertexInputBindingDescription. -
Method Summary
Modifier and TypeMethodDescriptionintbinding()builder()Creates a builder forVulkanVertexInputBindingDescription.Creates an immutable copy of aVulkanVertexInputBindingDescriptionTypevalue.booleanThis instance is equal to all instances ofVulkanVertexInputBindingDescriptionthat have equal attribute values.inthashCode()Computes a hash code from attributes:binding,stride,inputRate.intstride()toString()Prints the immutable valueVulkanVertexInputBindingDescriptionwith attribute values.withBinding(int value) Copy the current immutable object by setting a value for thebindingattribute.Copy the current immutable object by setting a value for theinputRateattribute.withStride(int value) Copy the current immutable object by setting a value for thestrideattribute.
-
Method Details
-
binding
public int binding()- Specified by:
bindingin interfaceVulkanVertexInputBindingDescriptionType- Returns:
- The binding number that this structure describes.
-
stride
public int stride()- Specified by:
stridein interfaceVulkanVertexInputBindingDescriptionType- Returns:
- The distance in bytes between two consecutive elements within the buffer.
-
inputRate
- Specified by:
inputRatein interfaceVulkanVertexInputBindingDescriptionType- Returns:
- Specifies whether vertex attribute addressing is a function of the vertex index or of the instance index.
-
withBinding
Copy the current immutable object by setting a value for thebindingattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for binding- Returns:
- A modified copy or the
thisobject
-
withStride
Copy the current immutable object by setting a value for thestrideattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stride- Returns:
- A modified copy or the
thisobject
-
withInputRate
Copy the current immutable object by setting a value for theinputRateattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for inputRate- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
public static VulkanVertexInputBindingDescription copyOf(VulkanVertexInputBindingDescriptionType instance) Creates an immutable copy of aVulkanVertexInputBindingDescriptionTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanVertexInputBindingDescription instance
-
builder
Creates a builder forVulkanVertexInputBindingDescription.VulkanVertexInputBindingDescription.builder() .setBinding(int) // optional
binding.setStride(int) // optionalstride.setInputRate(com.io7m.jcoronado.api.VulkanVertexInputRate) // optionalinputRate.build();- Returns:
- A new VulkanVertexInputBindingDescription builder
-