array

indigo.shared.shader.ShaderPrimitive.array
See thearray companion object
final case class array[T](size: Int, values: ArraySeq[T])(using ev: IsShaderValue[T]) extends ShaderPrimitive

array data to send to the fragment shader

Value parameters

ev

Implicit proof that T is a Shader value (float, vec2, vec3, vec4)

size

Size != Length! Size is the memory allocated, the max possible number of entries, e.g. you are sending 3 x vec2 but the size is 16, meaning the max you could send is 16 x vec2 but no more than that.

values

The values to send

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def toArray: Array[Float]
def toJSArray: Array[Float]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val hash: String
val isArray: Boolean
val length: Int