colorBuffer

fun colorBuffer(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): ColorBuffer(source)

create a ColorBuffer

Parameters

width

the width in device units

height

the height in device units

contentScale

content scale used for denoting hi-dpi content

format

the color format

type

the color type

multisample

multisampling mode to use

levels

the number of mip-map levels

session

the Session that should track this color buffer