ColorBufferAttachment
class ColorBufferAttachment(index: Int, name: String?, val colorBuffer: ColorBuffer, val level: Int, 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.