Package-level declarations

Types

Link copied to clipboard
open class Arg(val name: String, val type: VarType, val arrayCount: Int = 1, val precision: Precision = Precision.DEFAULT) : Variable
Link copied to clipboard
open class Attribute(val name: String, val type: VarType, val normalized: Boolean, val offset: Int? = null, val active: Boolean = true, val precision: Precision = Precision.DEFAULT, val divisor: Int = 0, val fixedLocation: Int) : VariableWithOffset
Link copied to clipboard
Link copied to clipboard
open class Operand(val type: VarType)
Link copied to clipboard
open class OperandWithArray(val type: VarType, val arrayCount: Int) : Operand
Link copied to clipboard
object Output : Varying
Link copied to clipboard
Link copied to clipboard
data class Program(val vertex: VertexShader, val fragment: FragmentShader, val name: String = "program-") : Closeable
Link copied to clipboard
open class ProgramLayout<TVariable : VariableWithOffset>(items: List<TVariable>, layoutSize: Int?, val fixedLocation: Int = -1) : Iterable<TVariable>
Link copied to clipboard
open class Sampler(val name: String, val index: Int, val stype: SamplerVarType) : Variable
Link copied to clipboard
Link copied to clipboard
data class Shader(val type: ShaderType, val stm: Program.Stm, val functions: List<FuncDecl>, val name: String? = null)
Link copied to clipboard
Link copied to clipboard
open class Temp(id: Int, val type: VarType, val arrayCount: Int, val precision: Precision = Precision.DEFAULT) : Variable
Link copied to clipboard
class TypedUniform<T>(val name: String, val voffset: Int, var vindex: Int, val block: UniformBlock, val type: VarType, val arrayCount: Int) : VariableWithOffset
Link copied to clipboard
open class Uniform(val name: String, val type: VarType, val arrayCount: Int, val precision: Precision = Precision.DEFAULT, val offset: Int? = null, val typedUniform: TypedUniform<*>) : VariableWithOffset
Link copied to clipboard
open class UniformBlock(val fixedLocation: Int)
Link copied to clipboard
class UniformBlockBase(val fixedLocation: Int = -1)
Link copied to clipboard
class UniformBlockBuffer<T : UniformBlock>(val block: T)
Link copied to clipboard
class UniformBlocksBuffersRef(val blocks: Array<UniformBlockBuffer<*>?>, val buffers: Array<AGBuffer?>, val valueIndices: IntArray)
Link copied to clipboard
data class UniformInProgram(val uniform: Uniform, val index: Int)
Link copied to clipboard
class UniformsRef(val block: UniformBlock, var buffer: Buffer, var index: Int)
Link copied to clipboard
sealed class Variable : OperandWithArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface VarTypeAccessor
Link copied to clipboard
open class Varying(val name: String, val type: VarType, val arrayCount: Int, val precision: Precision = Precision.DEFAULT) : Variable
Link copied to clipboard
Link copied to clipboard
typealias VertexShader = Shader

Properties

Functions

Link copied to clipboard
Link copied to clipboard
inline fun Program.appendingFragment(extraName: String, block: Program.Builder.() -> Unit): Program
Link copied to clipboard
inline fun Program.appendingVertex(extraName: String, block: Program.Builder.() -> Unit): Program
Link copied to clipboard
fun Attribute(type: VarType, normalized: Boolean, precision: Precision = Precision.DEFAULT, fixedLocation: Int): Attribute.Provider
Link copied to clipboard
Link copied to clipboard
inline fun Program.replacingFragment(extraName: String, block: ProgramBuilderDefault.() -> Unit): Program
Link copied to clipboard
inline fun Program.replacingVertex(extraName: String, block: ProgramBuilderDefault.() -> Unit): Program
Link copied to clipboard
Link copied to clipboard
fun Varying(type: VarType, arrayCount: Int = 1, precision: Precision = Precision.DEFAULT): Varying.Provider
Link copied to clipboard
fun VertexShader(stm: Program.Stm, funcs: List<FuncDecl> = listOf()): Shader
fun VertexShader(rawStrings: Map<String, String>, stm: Program.Stm? = null): Shader