ColorBuffer
representation for simple images stored on GPU memory
ColorBuffer is a unmanaged GPU resource, the user is responsible for destroying a ColorBuffer once it is no longer used.
Constructors
Types
Functions
bind the colorbuffer to a texture unit, internal API
bind the colorbuffer to a texture unit, internal API
return the buffer size in bytes
copies contents to a target array texture
copies contents to a target array texture
copies contents to a target color buffer
create a cropped copy of the ColorBuffer
permanently destroy the underlying ColorBuffer resources, ColorBuffer can not be used after it is destroyed
permanently destroy the underlying ColorBuffer resources, ColorBuffer can not be used after it is destroyed
permanently destroy the underlying ColorBuffer resources, ColorBuffer can not be used after it is destroyed
sets the ColorBuffer filter for minifying and magnification
generates mipmaps from the top-level mipmap
generates mipmaps from the top-level mipmap
generates mipmaps from the top-level mipmap
read the contents of the ColorBuffer and write to targetBuffer, potentially with format and type conversions
save the ColorBuffer to File
return a base64 data url representation
Properties
the content scale of the ColorBuffer
the content scale of the ColorBuffer
the content scale of the ColorBuffer
should the v coordinate be flipped because the ColorBuffer contents are stored upside-down?
should the v coordinate be flipped because the ColorBuffer contents are stored upside-down?
should the v coordinate be flipped because the ColorBuffer contents are stored upside-down?
the ColorFormat of the image stored in the ColorBuffer
the ColorFormat of the image stored in the ColorBuffer
the ColorFormat of the image stored in the ColorBuffer
the height of the ColorBuffer in device units
the height of the ColorBuffer in device units
the height of the ColorBuffer in device units
the multisampling method used for this ColorBuffer
the multisampling method used for this ColorBuffer
the multisampling method used for this ColorBuffer
the ColorType of the image stored in the ColorBuffer
the ColorType of the image stored in the ColorBuffer
the ColorType of the image stored in the ColorBuffer
the width of the ColorBuffer in device units
the width of the ColorBuffer in device units
the width of the ColorBuffer in device units
Extensions
create an equivalent ColorBuffer, with the option to override attributes
check if this ColorBuffer is equivalent to other