ColorBuffer
representation for simple images stored on GPU memory
ColorBuffer is an unmanaged GPU resource, the user is responsible for destroying a ColorBuffer once it is no longer used.
Functions
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 an equivalent ColorBuffer, with the option to override attributes
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
generates mipmaps from the top-level mipmap
generates mipmaps from the top-level mipmap
generates mipmaps from the top-level mipmap
check if this ColorBuffer is equivalent to other
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
write the contents from sourceBuffer to the ColorBuffer, potentially with format and type conversions
Properties
the (unitless?) degree of anisotropy to be used in filtering
the (unitless?) degree of anisotropy to be used in filtering
the (unitless?) degree of anisotropy to be used in filtering
the content scale of the ColorBuffer
the content scale of the ColorBuffer
the content scale of the ColorBuffer
the filter to use when display at sizes larger than the original
the filter to use when displaying at sizes smaller than the original
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