// luma.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import { CommandEncoder } from '@luma.gl/core'; import { WEBGLCommandBuffer } from "./webgl-command-buffer.js"; export class WEBGLCommandEncoder extends CommandEncoder { device; commandBuffer; constructor(device, props) { super(device, props); this.device = device; this.commandBuffer = new WEBGLCommandBuffer(device); } destroy() { } finish() { this.commandBuffer.submitCommands(); } // beginRenderPass(GPURenderPassDescriptor descriptor): GPURenderPassEncoder; // beginComputePass(optional GPUComputePassDescriptor descriptor = {}): GPUComputePassEncoder; // finish(options?: {id?: string}): GPUCommandBuffer; copyBufferToBuffer(options) { this.commandBuffer.commands.push({ name: 'copy-buffer-to-buffer', options }); } copyBufferToTexture(options) { this.commandBuffer.commands.push({ name: 'copy-buffer-to-texture', options }); } copyTextureToBuffer(options) { this.commandBuffer.commands.push({ name: 'copy-texture-to-buffer', options }); } copyTextureToTexture(options) { this.commandBuffer.commands.push({ name: 'copy-texture-to-texture', options }); } pushDebugGroup(groupLabel) { } popDebugGroup() { } insertDebugMarker(markerLabel) { } resolveQuerySet(querySet, destination, options) { } }