PixelBufferDescriptor
Describes pixel buffer data for uploading to a texture via setImage().
The callback is invoked after the driver has consumed the data, allowing safe deallocation or reuse of the storage.
Parameters
Client-side byte buffer containing pixel data
Total size of buffer in bytes
Pixel color format (layout)
Pixel data type (component size and signedness)
Alignment in bytes (default: 1)
Left offset in pixels (default: 0)
Top offset in pixels (default: 0)
Stride in pixels; 0 means tightly packed (default: 0)
Optional callback invoked when data is consumed (default: null)
Describes pixel buffer data for uploading to a texture via setImage().
The callback is invoked after the driver has consumed the data, allowing safe deallocation or reuse of the storage.
Parameters
Client-side byte buffer containing pixel data
Total size of buffer in bytes
Pixel color format (layout)
Pixel data type (component size and signedness)
Alignment in bytes (default: 1)
Left offset in pixels (default: 0)
Top offset in pixels (default: 0)
Stride in pixels; 0 means tightly packed (default: 0)
Optional callback invoked when data is consumed (default: null)
Describes pixel buffer data for uploading to a texture via setImage().
The callback is invoked after the driver has consumed the data, allowing safe deallocation or reuse of the storage.
Parameters
Client-side byte buffer containing pixel data
Total size of buffer in bytes
Pixel color format (layout)
Pixel data type (component size and signedness)
Alignment in bytes (default: 1)
Left offset in pixels (default: 0)
Top offset in pixels (default: 0)
Stride in pixels; 0 means tightly packed (default: 0)
Optional callback invoked when data is consumed (default: null)
Describes pixel buffer data for uploading to a texture via setImage().
The callback is invoked after the driver has consumed the data, allowing safe deallocation or reuse of the storage.
Parameters
Client-side byte buffer containing pixel data
Total size of buffer in bytes
Pixel color format (layout)
Pixel data type (component size and signedness)
Alignment in bytes (default: 1)
Left offset in pixels (default: 0)
Top offset in pixels (default: 0)
Stride in pixels; 0 means tightly packed (default: 0)
Optional callback invoked when data is consumed (default: null)
Describes pixel buffer data for uploading to a texture via setImage().
The callback is invoked after the driver has consumed the data, allowing safe deallocation or reuse of the storage.
Parameters
Client-side byte buffer containing pixel data
Total size of buffer in bytes
Pixel color format (layout)
Pixel data type (component size and signedness)
Alignment in bytes (default: 1)
Left offset in pixels (default: 0)
Top offset in pixels (default: 0)
Stride in pixels; 0 means tightly packed (default: 0)
Optional callback invoked when data is consumed (default: null)