commonMain.dsl.functions.RImage3DFunctions.kt Maven / Gradle / Ivy
The newest version!
package org.openrndr.orsl.shadergenerator.dsl.functions
import org.openrndr.orsl.shadergenerator.dsl.*
import org.openrndr.math.IntVector3
import kotlin.jvm.JvmName
@Suppress("INAPPLICABLE_JVM_NAME")
interface RImage3DFunctions : Generator{
@JvmName("loadSri3Siv3")
fun Symbol.load(uvw: Symbol): Symbol =
functionSymbol(this, uvw, "imageLoad($0, $1).x")
@JvmName("storeSri3Siv3i")
fun Symbol.store(uvw: Symbol, data: Symbol) {
functionCall(this, uvw, data, "imageStore($0, $1, vec4($2))")
}
@JvmName("sizeSri3")
fun Symbol.size(): Symbol =
functionSymbol(this, "imageSize($0)")
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy