Interface GPUCommandEncoder

Hierarchy

Properties

__brand: "GPUCommandEncoder"
label: string

Methods

  • Encode a command into the GPUCommandEncoder that fills a sub-region of a GPUBuffer with zeros.

    Parameters

    • buffer: GPUBuffer

      The GPUBuffer to clear.

    • Optional offset: number

      Offset in bytes into buffer where the sub-region to clear begins.

    • Optional size: number

      Size in bytes of the sub-region to clear. Defaults to the size of the buffer minus offset.

    Returns undefined

  • Encode a command into the GPUCommandEncoder that copies data from a sub-region of a GPUBuffer to a sub-region of another GPUBuffer.

    Parameters

    • source: GPUBuffer

      The GPUBuffer to copy from.

    • sourceOffset: number

      Offset in bytes into source to begin copying from.

    • destination: GPUBuffer

      The GPUBuffer to copy to.

    • destinationOffset: number

      Offset in bytes into destination to place the copied data.

    • size: number

      Bytes to copy.

    Returns undefined

  • Encode a command into the GPUCommandEncoder that copies data from a sub-region of a GPUBuffer to a sub-region of one or multiple continuous texture subresources.

    Parameters

    Returns undefined

  • Encode a command into the GPUCommandEncoder that copies data from a sub-region of one or multiple continuous texture subresources to a sub-region of a GPUBuffer.

    Parameters

    Returns undefined

  • Encode a command into the GPUCommandEncoder that copies data from a sub-region of one or multiple contiguous texture subresources to another sub-region of one or multiple continuous texture subresources.

    Parameters

    Returns undefined

  • Marks a point in a stream of commands with a label.

    Parameters

    • markerLabel: string

      The label to insert.

    Returns undefined

  • Begins a labeled debug group containing subsequent commands.

    Parameters

    • groupLabel: string

      The label for the command group.

    Returns undefined

  • Resolves query results from a GPUQuerySet out into a range of a GPUBuffer. querySet: firstQuery: queryCount: destination: destinationOffset:

    Parameters

    • querySet: GPUQuerySet
    • firstQuery: number
    • queryCount: number
    • destination: GPUBuffer
    • destinationOffset: number

    Returns undefined

  • Writes a timestamp value into a querySet when all previous commands have completed executing. Note: Timestamp query values are written in nanoseconds, but how the value is determined is implementation-defined and may not increase monotonically. See [[#timestamp]] for details.

    Parameters

    • querySet: GPUQuerySet

      The query set that will store the timestamp values.

    • queryIndex: number

      The index of the query in the query set.

    Returns undefined