chromium/third_party/blink/renderer/modules/canvas/canvas2d/canvas_2d_gpu_transfer.idl

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://github.com/fserb/canvas2D/blob/master/spec/webgpu.md
[
    RuntimeEnabled=Canvas2dGPUTransfer,
    Exposed=(Window,Worker),
    SecureContext
] interface mixin Canvas2dGPUTransfer {
  [RaisesException] GPUTexture transferToGPUTexture(Canvas2dGPUTransferOption options);
  [RaisesException] undefined transferBackFromGPUTexture();
  GPUTextureFormat getTextureFormat();
};