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

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

The newest version!
package org.openrndr.orsl.shadergenerator.phrases.dsl.functions

import org.openrndr.orsl.shadergenerator.dsl.Generator
import org.openrndr.orsl.shadergenerator.dsl.Symbol
import org.openrndr.orsl.shadergenerator.dsl.functionSymbol
import org.openrndr.orsl.shadergenerator.dsl.IntImage2D
import org.openrndr.math.IntVector2
import org.openrndr.math.IntVector4
import org.openrndr.math.Vector4
import kotlin.jvm.JvmName

@Suppress("INAPPLICABLE_JVM_NAME")
interface IntImage2DFunctions : Generator{
    @JvmName("loadSii2Siv2")
    fun Symbol.load(uv: Symbol): Symbol =
        functionSymbol(this, uv, "imageLoad($0, $1)")

    @JvmName("storeSii2Siv2Sv4")
    fun Symbol.store(uv: Symbol, data: Symbol): Symbol =
        functionSymbol(this, uv,  data,"imageStore($0, $1, $2)")

    @JvmName("sizeSii2")
    fun Symbol.size(): Symbol =
        functionSymbol(this, "imageSize($0)")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy