// luma.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import {Device} from '../device'; import {Resource, ResourceProps} from './resource'; // interface Queue { // submit(commandBuffers); // // onSubmittedWorkDone(): Promise; // writeBuffer(options: WriteBufferOptions): void; // writeTexture(options: TextureWriteOptions): void; // // copyExternalImageToTexture( // // GPUImageCopyExternalImage source, // // GPUImageCopyTextureTagged destination, // // GPUExtent3D copySize // // ): void; // } export type CommandBufferProps = ResourceProps & {}; /** * Represents the finished contents of exactly one CommandEncoder. Backends may store native * command buffers or replayable command lists internally, but submission must preserve the same * recorded command ordering. */ export abstract class CommandBuffer extends Resource { override get [Symbol.toStringTag](): string { return 'CommandBuffer'; } constructor(device: Device, props: CommandBufferProps) { super(device, props, CommandBuffer.defaultProps); } static override defaultProps: Required = { ...Resource.defaultProps }; }