Sampler2D

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Sampler2D(val name: String, val size: Int = -1)

Marks a uniform sampler2D variable property in ShaderParams-annotated class.

Supports properties of types:

  • textures: Texture,

  • types with iterator(): Iterator<Texture> method (e.g. Array<Texture>, Iterable<Texture>, etc.).

Since

v1.2.0

See also

Constructors

Link copied to clipboard
fun Sampler2D(name: String, size: Int = -1)

Properties

Link copied to clipboard
val name: String

Uniform variable name, as defined in the shader.

Link copied to clipboard
val size: Int

Number of textures returned by the iterator.