copyBufferToTexture method

  1. @override
void copyBufferToTexture(
  1. StorageBuffer source,
  2. BufferTextureLayout layout,
  3. TextureCopyLocation destination, {
  4. required int width,
  5. required int height,
  6. int depthOrArrayLayers = 1,
})
override

Copies texels laid out in source as layout into destination. DeviceFeature.bufferTextureCopy.

Implementation

@override
void copyBufferToTexture(
  StorageBuffer source,
  BufferTextureLayout layout,
  TextureCopyLocation destination, {
  required int width,
  required int height,
  int depthOrArrayLayers = 1,
}) => _gated(DeviceFeature.bufferTextureCopy, 'copyBufferToTexture', (
  source: source,
  layout: layout,
  destination: destination,
  width: width,
  height: height,
  depthOrArrayLayers: depthOrArrayLayers,
));