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.
Represents a color buffer, which is an abstract resource used for storing image data and managing operations like mipmapping, filtering, and copying of image data. A ColorBuffer can be used in various scenarios such as rendering to textures or managing image storage in graphics applications.
Represents a color buffer, which is an abstract resource used for storing image data and managing operations like mipmapping, filtering, and copying of image data. A ColorBuffer can be used in various scenarios such as rendering to textures or managing image storage in graphics applications.
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
Defines the rectangular bounds of this ColorBuffer. The bounds typically represent the width and height.
Defines the rectangular bounds of this ColorBuffer. The bounds typically represent the width and height.
Defines the rectangular bounds of this ColorBuffer. The bounds typically represent the width and height.
the content scale of the ColorBuffer
the content scale of the ColorBuffer
the content scale of the ColorBuffer
the height of the ColorBuffer in pixels
the height of the ColorBuffer in pixels
the height of the ColorBuffer in pixels
the width of the ColorBuffer in pixels
the width of the ColorBuffer in pixels
the width of the ColorBuffer in pixels
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
Functions
return the buffer size in bytes
copies contents to a target array texture
Copies level fromLevel to level toLevel of target without scaling. When the levels differ in size the overlapping region is copied, anchored at the texture origin: the bottom-left corner.
copies contents to a target color buffer
copies contents to a target array texture
Copies level fromLevel to level toLevel of target without scaling. When the levels differ in size the overlapping region is copied, anchored at the texture origin: the bottom-left corner.
Copies sourceRectangle of level fromLevel to targetRectangle of level toLevel of target. The rectangles are in pixels, with the origin in the top-left corner. The copy is scaled with filter when the rectangles differ in size, unscaled copies are clipped to both color buffers.
copies contents to a target array texture
Copies level fromLevel to level toLevel of target without scaling. When the levels differ in size the overlapping region is copied, anchored at the texture origin: the bottom-left corner.
Copies sourceRectangle of level fromLevel to targetRectangle of level toLevel of target. The rectangles are in pixels, with the origin in the top-left corner. The copy is scaled with filter when the rectangles differ in size, unscaled copies are clipped to both color buffers.
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
write the contents from sourceBuffer to the ColorBuffer, potentially with format and type conversions
write the contents from sourceBuffer to the ColorBuffer, potentially with format and type conversions