luma.gl/docs/api-reference/api/resources/command-encoder.md
2022-12-15 11:59:54 -05:00

27 lines
991 B
Markdown

# CommandEncoder
> The luma.gl v9 API is currently in [public review](/docs/public-review).
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(...)`.