Chartbreaker
    Preparing search index...

    Interface GPUQueue

    The GPUQueue interface of the WebGPU API controls execution of encoded commands on the GPU. Available only in secure contexts.

    MDN Reference

    interface GPUQueue {
        label: string;
        copyExternalImageToTexture(
            source: GPUCopyExternalImageSourceInfo,
            destination: GPUCopyExternalImageDestInfo,
            copySize: GPUExtent3D,
        ): void;
        copyExternalImageToTexture(
            source: GPUCopyExternalImageSourceInfo,
            destination: GPUCopyExternalImageDestInfo,
            copySize: Iterable<number>,
        ): void;
        onSubmittedWorkDone(): Promise<void>;
        submit(commandBuffers: GPUCommandBuffer[]): void;
        submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
        writeBuffer(
            buffer: GPUBuffer,
            bufferOffset: number,
            data: AllowSharedBufferSource,
            dataOffset?: number,
            size?: number,
        ): void;
        writeTexture(
            destination: GPUTexelCopyTextureInfo,
            data: AllowSharedBufferSource,
            dataLayout: GPUTexelCopyBufferLayout,
            size: GPUExtent3D,
        ): void;
        writeTexture(
            destination: GPUTexelCopyTextureInfo,
            data: AllowSharedBufferSource,
            dataLayout: GPUTexelCopyBufferLayout,
            size: Iterable<number>,
        ): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    label: string

    Methods

    • The onSubmittedWorkDone() method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.

      MDN Reference

      Returns Promise<void>

    • The submit() method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.

      MDN Reference

      Parameters

      Returns void

    • The submit() method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.

      MDN Reference

      Parameters

      Returns void

    • The writeBuffer() method of the GPUQueue interface writes a provided data source into a given GPUBuffer.

      MDN Reference

      Parameters

      Returns void