ResizableColorBuffer
constructor( 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)(source)
Parameters
width
Initial width of the color buffer.
height
Initial height of the color buffer.
contentScale
Scale factor of the buffer's content (default is 1.0).
format
The color format of the buffer (default is ColorFormat.RGBa
).
type
The color type specifying the data type of the color components (default is determined using defaultColorType).
multisample
Multisample configuration for the buffer (default is BufferMultisample.Disabled
).
levels
Number of mipmap levels (default is 1).
session
Graphics session to which the buffer belongs (default is the active session).