Attribute

@Target(allowedTargets = [])
annotation class Attribute(name: String, role: AttributeRole, vectorSize: Int)

Vertex attributes array provided to a shader from the mesh.

This annotation is only intended to by used as an array element in ShaderParams.attributes.

Constructors

Link copied to clipboard
fun Attribute(name: String, role: AttributeRole, vectorSize: Int)

Properties

Link copied to clipboard
val name: String

Attribute name.

Link copied to clipboard
val role: AttributeRole

Attribute role.

Link copied to clipboard
val vectorSize: Int

Vertex attributes array vector size.