ColorBufferAttachment

class ColorBufferAttachment(val index: Int, val name: String?, val colorBuffer: ColorBuffer, val level: Int, val ownedByRenderTarget: Boolean) : ColorAttachment(source)

Represents a color buffer attachment for a render target.

A ColorBufferAttachment binds a ColorBuffer object to a render target slot, allowing the render target to use the color data stored in the attached ColorBuffer. This attachment is used in rendering pipelines for operations such as off-screen rendering or image processing.

Parameters

index

The binding index for the render target.

name

An optional name for the binding, defaults to null.

colorBuffer

The ColorBuffer object to attach.

level

The mipmap level of the attached ColorBuffer to use.

ownedByRenderTarget

Whether the ColorBuffer is owned by the render target.

Constructors

Link copied to clipboard
constructor(index: Int, name: String?, colorBuffer: ColorBuffer, level: Int, ownedByRenderTarget: Boolean)

Creates a new ColorBufferAttachment.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val index: Int
Link copied to clipboard
val level: Int
Link copied to clipboard
val name: String?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String