copyTextureToBuffer method

  1. @override
void copyTextureToBuffer(
  1. TextureCopyLocation source,
  2. StorageBuffer destination,
  3. BufferTextureLayout layout, {
  4. required int width,
  5. required int height,
  6. 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,
));