All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.dsl.functions.SamplerCubeFunctions.kt Maven / Gradle / Ivy

package org.openrndr.orsl.shadergenerator.dsl.functions

import org.openrndr.orsl.shadergenerator.dsl.*
import org.openrndr.orsl.shadergenerator.dsl.Generator
import org.openrndr.math.IntVector2
import org.openrndr.math.Vector2
import org.openrndr.math.Vector3
import org.openrndr.math.Vector4
import kotlin.jvm.JvmName

@Suppress("INAPPLICABLE_JVM_NAME")
interface SamplerCubeFunctions : Generator {

    @JvmName("getSscSv3")
    operator fun Symbol.get(uvw: Symbol): Symbol =
        functionSymbol(this, uvw, "texture($0, $1)")

    @JvmName("getSscSv3Sd")
    operator fun Symbol.get(uvw: Symbol, lod: Symbol): Symbol =
        Function3Symbol(p0 = this, p1 = uvw, p2 = lod, function = "textureLod($0, $1, $2)", type = "vec4")

    @JvmName("sizeSsc")
    fun Symbol.size(level: Int = 0): Symbol =
        functionSymbol(this, level, "textureSize($0, $1)")

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy