Program

data class Program(val vertex: VertexShader, val fragment: FragmentShader, val name: String = "program-") : Closeable

Constructors

Link copied to clipboard
constructor(vertex: VertexShader, fragment: FragmentShader, name: String = "program-")

Types

Link copied to clipboard
data class ArrayAccess(val left: Operand, val index: Operand) : Operand
Link copied to clipboard
abstract class BaseFunc(val type: VarType) : Operand
Link copied to clipboard
data class Binop(val left: Operand, val op: String, val right: Operand) : Operand
Link copied to clipboard
data class BoolLiteral(val value: Boolean) : Operand
Link copied to clipboard
open class Builder(context: Program.BuilderContext = BuilderContext()) : VarTypeAccessor, Program.ExpressionBuilder
Link copied to clipboard
Link copied to clipboard
open class CustomFunc(val ref: Program.FuncRef, val ops: List<Operand>) : Program.BaseFunc
Link copied to clipboard
Link copied to clipboard
data class CustomFunc1(val ref: Program.FuncRef, val p0: Operand) : Program.CustomFunc
Link copied to clipboard
data class CustomFunc2(val ref: Program.FuncRef, val p0: Operand, val p1: Operand) : Program.CustomFunc
Link copied to clipboard
data class CustomFunc3(val ref: Program.FuncRef, val p0: Operand, val p1: Operand, val p2: Operand) : Program.CustomFunc
Link copied to clipboard
data class CustomFunc4(val ref: Program.FuncRef, val p0: Operand, val p1: Operand, val p2: Operand, val p3: Operand) : Program.CustomFunc
Link copied to clipboard
data class CustomFunc5(val ref: Program.FuncRef, val p0: Operand, val p1: Operand, val p2: Operand, val p3: Operand, val p4: Operand) : Program.CustomFunc
Link copied to clipboard
data class CustomFuncN(val ref: Program.FuncRef, val ops: List<Operand>) : Program.CustomFunc
Link copied to clipboard
Link copied to clipboard
data class FloatLiteral(val value: Float) : Operand
Link copied to clipboard
data class Func(val name: String, val ops: List<Operand>, val type: VarType = VarType.Float1) : Program.BaseFunc
Link copied to clipboard
interface FuncRef
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class IntLiteral(val value: Int) : Operand
Link copied to clipboard
sealed class Stm
Link copied to clipboard
data class Swizzle(val left: Operand, val swizzle: String) : Operand
Link copied to clipboard
data class Ternary(val cond: Operand, val otrue: Operand, val ofalse: Operand) : Operand
Link copied to clipboard
data class Unop(val op: String, val right: Operand) : Operand
Link copied to clipboard
data class Vector(val type: VarType, val ops: Array<out Operand>) : Operand
Link copied to clipboard
open class Visitor<E>(val default: E)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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
open override fun close()
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
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
open override fun toString(): String