createColorBuffer
expect abstract fun createColorBuffer( width: Int, height: Int, contentScale: Double, format: ColorFormat, type: ColorType, multisample: BufferMultisample = BufferMultisample.Disabled, levels: Int = 1, session: Session? = Session.active): ColorBuffer(source)
Creates a color buffer with the specified dimensions, format, and other parameters.
Return
A newly created ColorBuffer instance with the defined specifications.
Parameters
width
The width of the color buffer in pixels.
height
The height of the color buffer in pixels.
contentScale
The scale factor for DPI adjustments.
format
The color format of the buffer (e.g., RGB, RGBA).
type
The color type that defines the data type for each component (e.g., UINT8, FLOAT).
multisample
The multisampling configuration for the buffer, default is no multisampling.
levels
The number of mipmap levels to create, default is 1.
session
The session to which this buffer belongs, default is the currently active session.
actual abstract fun createColorBuffer( width: Int, height: Int, contentScale: Double, format: ColorFormat, type: ColorType, multisample: BufferMultisample, levels: Int, session: Session?): ColorBuffer(source)
actual abstract fun createColorBuffer( width: Int, height: Int, contentScale: Double, format: ColorFormat, type: ColorType, multisample: BufferMultisample, levels: Int, session: Session?): ColorBuffer(source)