Package graphics.glimpse.shaders.annotations

Annotations defining shaders parameters.

Types

Link copied to clipboard
@Target(allowedTargets = [])
annotation class Attribute(    val name: String,     val role: AttributeRole,     val vectorSize: Int)

Vertex attributes array provided to a shader from the mesh.

Link copied to clipboard
enum AttributeRole : Enum<AttributeRole>

Attribute role.

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

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

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class ShaderParams(val attributes: Array<Attribute>)

Marks a class providing shader parameters data.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Uniform(val name: String)

Marks a uniform variable property in ShaderParams-annotated class.