Package graphics.glimpse.shaders.annotations

Annotations defining shaders parameters.

Types

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

Vertex attributes array provided to a shader from the mesh.

AttributeRole
Link copied to clipboard
enum AttributeRole : Enum<AttributeRole>

Attribute role.

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

Marks a class providing shader parameters data.

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

Marks a uniform variable property in ShaderParams-annotated class.