mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
27 lines
962 B
Markdown
27 lines
962 B
Markdown
# CommandEncoder
|
|
|
|
> Proposed luma.gl v9 API. Open for comments.
|
|
|
|
A command encoder offering GPU memory copying operations.
|
|
|
|
## Types
|
|
|
|
### `CommandEncoderProps`
|
|
|
|
| Property | Type | Description |
|
|
| ------------- | -------------------------------- | ---------------------------------------------------------------------------- |
|
|
| N/A | | |
|
|
|
|
|
|
## Members
|
|
|
|
- `device`: `Device` - holds a reference to the `Device` that created this `CommandEncoder`.
|
|
- `handle`: `unknown` - holds the underlying WebGL or WebGPU shader object
|
|
- `props`: `CommandEncoderProps` - holds a copy of the `CommandEncoderProps` used to create this `CommandEncoder`.
|
|
|
|
## Methods
|
|
|
|
### `constructor(props: CommandEncoderProps)`
|
|
|
|
`CommandEncoder` is an abstract class and cannot be instantiated directly. Create with `device.beginCommandEncoder(...)`.
|