commonMain.dsl.functions.Image3DFunctions.kt Maven / Gradle / Ivy
The newest version!
package org.openrndr.orsl.shadergenerator.dsl.functions
import org.openrndr.color.ColorRGBa
import org.openrndr.orsl.shadergenerator.dsl.*
import org.openrndr.orsl.shadergenerator.dsl.Image2D
import org.openrndr.math.IntVector2
import org.openrndr.math.IntVector3
import org.openrndr.math.Vector4
import kotlin.jvm.JvmName
@Suppress("INAPPLICABLE_JVM_NAME")
interface Image3DFunctions : Generator{
@JvmName("loadSi3Siv3")
fun Symbol.load(uvw: Symbol): Symbol =
functionSymbol(this, uvw, "imageLoad($0, $1)")
@JvmName("storeSi3Siv3Sv4")
fun Symbol.store(uvw: Symbol, data: Symbol) {
functionCall(this, uvw, data, "imageStore($0, $1, $2)")
}
@JvmName("storeSi3Siv3Scrgba")
fun Symbol.store(uv: Symbol, data: Symbol): Symbol =
functionSymbol(this, uv, data, "imageStore($0, $1, $2)")
@JvmName("sizeSi3")
fun Symbol.size(): Symbol =
functionSymbol(this, "imageSize($0)")
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy