copyTextureToTexture method

  1. @override
void copyTextureToTexture(
  1. TextureCopyLocation source,
  2. TextureCopyLocation destination, {
  3. required int width,
  4. required int height,
  5. int depthOrArrayLayers = 1,
})
override

Copies a width × height × depthOrArrayLayers box of texels from source to destination. The two textures share a format (or differ only in sRGB-ness) and a sample count. DeviceFeature.textureCopy.

Implementation

@override
void copyTextureToTexture(
  TextureCopyLocation source,
  TextureCopyLocation destination, {
  required int width,
  required int height,
  int depthOrArrayLayers = 1,
}) {
  source.checkFeatures(features, backend: 'FakeBackend');
  destination.checkFeatures(features, backend: 'FakeBackend');
  _gated(DeviceFeature.textureCopy, 'copyTextureToTexture', (
    source: source,
    destination: destination,
    width: width,
    height: height,
    depthOrArrayLayers: depthOrArrayLayers,
  ));
}