copyTextureToBuffer method
void
copyTextureToBuffer(
- TextureCopyLocation source,
- StorageBuffer destination,
- BufferTextureLayout layout, {
- required int width,
- required int height,
- int depthOrArrayLayers = 1,
override
Copies texels from source into destination, laid out as layout.
DeviceFeature.bufferTextureCopy.
Implementation
@override
void copyTextureToBuffer(
TextureCopyLocation source,
StorageBuffer destination,
BufferTextureLayout layout, {
required int width,
required int height,
int depthOrArrayLayers = 1,
}) => _gated(DeviceFeature.bufferTextureCopy, 'copyTextureToBuffer', (
source: source,
destination: destination,
layout: layout,
width: width,
height: height,
depthOrArrayLayers: depthOrArrayLayers,
));