commonMain.dsl.functions.SamplerBufferFunctions.kt Maven / Gradle / Ivy
The newest version!
package org.openrndr.orsl.shadergenerator.dsl.functions
import org.openrndr.orsl.shadergenerator.dsl.*
import org.openrndr.orsl.shadergenerator.dsl.Generator
import org.openrndr.math.Vector4
import kotlin.jvm.JvmName
@Suppress("INAPPLICABLE_JVM_NAME")
interface SamplerBufferFunctions : Generator {
@JvmName("sizeSsb")
fun Symbol.size(): Symbol =
functionSymbol(this, "textureSize($0)")
@JvmName("fetchSsbSi")
fun Symbol.fetch(u: Symbol): Symbol =
Function2Symbol(p0 = this, p1 = u, function = "texelFetch($0, $1)", type = "vec4")
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy