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
return the buffer size in bytes
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
sets the ColorBuffer filter for minifying and magnification
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
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 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
Extensions
create an equivalent ColorBuffer, with the option to override attributes
check if this ColorBuffer is equivalent to other