RenderTargetBuilder

class RenderTargetBuilder(renderTarget: RenderTarget)

Functions

arrayCubemap
Link copied to clipboard
common
fun arrayCubemap(arrayCubemap: ArrayCubemap, side: CubemapSide, layer: Int, level: Int = 0)

attach an existing ArrayCubemap with a nameless binding to RenderTarget

fun arrayCubemap(name: String, arrayCubemap: ArrayCubemap, side: CubemapSide, layer: Int, level: Int = 0)

attach an existing ArrayCubemap with a named binding to RenderTarget

arrayTexture
Link copied to clipboard
common
fun arrayTexture(arrayTexture: ArrayTexture, layer: Int, level: Int = 0)
fun arrayTexture(name: String, arrayTexture: ArrayTexture, layer: Int, level: Int = 0)

attach an existing ArrayTexture with a named binding to RenderTarget

colorBuffer
Link copied to clipboard
common
fun colorBuffer(colorBuffer: ColorBuffer, level: Int = 0)

attach an existing ColorBuffer to the RenderTarget

fun colorBuffer(format: ColorFormat = ColorFormat.RGBa, type: ColorType = ColorType.UINT8)

create a new ColorBuffer and create a nameless attachment to the RenderTarget

fun colorBuffer(name: String, colorBuffer: ColorBuffer, level: Int = 0)

attach an existing ColorBuffer to the RenderTarget and give it a name

fun colorBuffer(name: String, format: ColorFormat = ColorFormat.RGBa, type: ColorType = ColorType.UINT8)

create a new ColorBuffer and create a named attachment to the RenderTarget

fun colorBuffer(width: Int, height: Int, contentScale: Double = 1.0, format: ColorFormat = ColorFormat.RGBa, type: ColorType = ColorType.UINT8, multisample: BufferMultisample): Nothing
cubemap
Link copied to clipboard
common
fun cubemap(cubemap: Cubemap, side: CubemapSide, level: Int = 0)

attach an existing Cubemap with a nameless binding to RenderTarget

fun cubemap(name: String, cubemap: Cubemap, side: CubemapSide, level: Int = 0)

attach an existing Cubemap with a named binding to RenderTarget

depthBuffer
Link copied to clipboard
common
fun depthBuffer(depthBuffer: DepthBuffer)

attach an existing DepthBuffer

fun depthBuffer(format: DepthFormat = DepthFormat.DEPTH24_STENCIL8)

create and attach a DepthBuffer

volumeTexture
Link copied to clipboard
common
fun volumeTexture(volumeTexture: VolumeTexture, layer: Int, level: Int = 0)

attach an existing VolumeTexture with a nameless binding to RenderTarget

fun volumeTexture(name: String, volumeTexture: VolumeTexture, layer: Int, level: Int = 0)

attach an existing VolumeTexture with a named binding to RenderTarget