resizableColorBuffer
fun resizableColorBuffer(width: Int, height: Int, contentScale: Double = 1.0, format: ColorFormat = ColorFormat.RGBa, type: ColorType = defaultColorType(format), multisample: BufferMultisample = BufferMultisample.Disabled, levels: Int = 1, session: Session? = Session.active): ResizableColorBuffer(source)
Creates a resizable color buffer with the specified dimensions and properties.
Parameters
width
The initial width of the color buffer in pixels.
height
The initial height of the color buffer in pixels.
contentScale
The content scale factor for the color buffer, default is 1.0.
format
The color format of the buffer (e.g., RGBa), default is ColorFormat.RGBa.
type
The type of color data in the buffer (e.g., UINT8, FLOAT16). Defaults to the type as determined by the given format using defaultColorType.
multisample
Specifies whether multisampling is enabled and the sample count, default is BufferMultisample.Disabled.
levels
The number of mipmap levels, default is 1.
session
The session to which this buffer is associated, default is the currently active session (Session.active).