Record Class WgpuBindings.VertexBufferLayoutDesc
java.lang.Object
java.lang.Record
dev.engine.graphics.webgpu.WgpuBindings.VertexBufferLayoutDesc
- Enclosing interface:
WgpuBindings
public static record WgpuBindings.VertexBufferLayoutDesc(int stride, int stepMode, WgpuBindings.VertexAttributeDesc[] attributes)
extends Record
Describes vertex buffer layout for pipeline creation.
-
Constructor Summary
ConstructorsConstructorDescriptionVertexBufferLayoutDesc(int stride, int stepMode, WgpuBindings.VertexAttributeDesc[] attributes) Creates an instance of aVertexBufferLayoutDescrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intstepMode()Returns the value of thestepModerecord component.intstride()Returns the value of thestriderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VertexBufferLayoutDesc
public VertexBufferLayoutDesc(int stride, int stepMode, WgpuBindings.VertexAttributeDesc[] attributes) Creates an instance of aVertexBufferLayoutDescrecord class.- Parameters:
stride- the value for thestriderecord componentstepMode- the value for thestepModerecord componentattributes- the value for theattributesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
stride
public int stride()Returns the value of thestriderecord component.- Returns:
- the value of the
striderecord component
-
stepMode
public int stepMode()Returns the value of thestepModerecord component.- Returns:
- the value of the
stepModerecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-