ShaderGL3

class ShaderGL3(val programObject: Int, val name: String, vertexShader: VertexShaderGL3, tessellationControlShader: TessellationControlShaderGL3?, tessellationEvaluationShader: TessellationEvaluationShaderGL3?, geometryShader: GeometryShaderGL3?, fragmentShader: FragmentShaderGL3, val session: Session?) : Shader, ShaderUniformsGL3, ShaderBufferBindingsGL3, ShaderImageBindingsGL43(source)

Constructors

Link copied to clipboard
constructor(programObject: Int, name: String, vertexShader: VertexShaderGL3, tessellationControlShader: TessellationControlShaderGL3?, tessellationEvaluationShader: TessellationEvaluationShaderGL3?, geometryShader: GeometryShaderGL3?, fragmentShader: FragmentShaderGL3, session: Session?)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
open override fun begin()
Link copied to clipboard
open override fun block(blockName: String, block: UniformBlock)
Link copied to clipboard
fun blockIndex(block: String): Int
Link copied to clipboard
open override fun blockLayout(blockName: String): UniformBlockLayout?
Link copied to clipboard
open fun bound(f: () -> Unit)
Link copied to clipboard
abstract fun buffer(name: String, counterBuffer: AtomicCounterBuffer)
abstract fun buffer(name: String, shaderStorageBuffer: ShaderStorageBuffer)
abstract fun buffer(name: String, vertexBuffer: VertexBuffer)
Link copied to clipboard
open override fun createBlock(blockName: String): UniformBlock?
Link copied to clipboard
open fun createSSBO(): Int
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun end()
Link copied to clipboard
open override fun hasUniform(name: String): Boolean
Link copied to clipboard
abstract fun image(name: String, image: Int, imageBinding: Array<out ImageBinding>)
abstract fun image(name: String, image: Int, imageBinding: ImageBinding)
Link copied to clipboard
open fun resourceIndex(name: String): Int
Link copied to clipboard
abstract fun uniform(name: String, value: DoubleArray)
abstract fun uniform(name: String, value: Array<ColorRGBa>)
abstract fun uniform(name: String, value: Array<IntVector2>)
abstract fun uniform(name: String, value: Array<IntVector3>)
abstract fun uniform(name: String, value: Array<IntVector4>)
abstract fun uniform(name: String, value: Array<Matrix44>)
abstract fun uniform(name: String, value: Array<Vector2>)
abstract fun uniform(name: String, value: Array<Vector3>)
abstract fun uniform(name: String, value: Array<Vector4>)
abstract fun uniform(name: String, value: Boolean)
abstract fun uniform(name: String, value: Double)
abstract fun uniform(name: String, value: Float)
abstract fun uniform(name: String, value: FloatArray)
abstract fun uniform(name: String, value: Int)
abstract fun uniform(name: String, value: IntArray)
abstract fun uniform(name: String, value: ColorRGBa)
abstract fun uniform(name: String, value: BooleanVector2)
abstract fun uniform(name: String, value: BooleanVector3)
abstract fun uniform(name: String, value: BooleanVector4)
abstract fun uniform(name: String, value: IntVector2)
abstract fun uniform(name: String, value: IntVector3)
abstract fun uniform(name: String, value: IntVector4)
abstract fun uniform(name: String, value: Matrix33)
abstract fun uniform(name: String, value: Matrix44)
abstract fun uniform(name: String, value: Vector2)
abstract fun uniform(name: String, value: Vector3)
abstract fun uniform(name: String, value: Vector4)
abstract fun uniform(name: String, x: Float, y: Float)
abstract fun uniform(name: String, x: Float, y: Float, z: Float)
abstract fun uniform(name: String, x: Float, y: Float, z: Float, w: Float)
Link copied to clipboard
open fun uniformIndex(uniform: String, query: Boolean = false): Int

Properties

Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val programObject: Int
Link copied to clipboard
open override val session: Session?
Link copied to clipboard
open override val ssbo: Int
Link copied to clipboard
Link copied to clipboard
open override val types: Set<ShaderType>
Link copied to clipboard
open override var uniforms: MutableMap<String, Int>
Link copied to clipboard
open override val useProgramUniform: Boolean