ShaderPrimitive

indigo.shared.shader.ShaderPrimitive
See theShaderPrimitive companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class array[T](size: Int, values: ArraySeq[T])(using ev: IsShaderValue[T]) extends ShaderPrimitive

array data to send to the fragment shader

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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object array

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
array.type
final case class float(value: Float) extends ShaderPrimitive

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
float.type
final case class mat4(mat: Array[Float]) extends ShaderPrimitive

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
mat4.type
final case class rawArray(arr: Array[Float]) extends ShaderPrimitive

Advanced usage only, a raw array of Float's to send to the fragment shader. Warning: The assumption here is that you know what you're doing i.e. how the packing/unpacking rules work. If you don't, use a normal shader array!

Advanced usage only, a raw array of Float's to send to the fragment shader. Warning: The assumption here is that you know what you're doing i.e. how the packing/unpacking rules work. If you don't, use a normal shader array!

Value parameters

arr

The array of Floats to send

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
rawArray.type
final case class rawJSArray(arr: Array[Float]) extends ShaderPrimitive

Advanced usage only, a raw array of Float's to send to the fragment shader. Warning: The assumption here is that you know what you're doing i.e. how the packing/unpacking rules work. If you don't, use a normal shader array!

Advanced usage only, a raw array of Float's to send to the fragment shader. Warning: The assumption here is that you know what you're doing i.e. how the packing/unpacking rules work. If you don't, use a normal shader array!

Value parameters

arr

The array of Floats to send

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
rawJSArray.type
final case class vec2(x: Float, y: Float) extends ShaderPrimitive

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
vec2.type
final case class vec3(x: Float, y: Float, z: Float) extends ShaderPrimitive

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
vec3.type
final case class vec4(x: Float, y: Float, z: Float, w: Float) extends ShaderPrimitive

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
vec4.type

Givens