CmdUploadBufferDiscardAll
Discards all pending uploads that have not been consumed by any Create*
command. This is a global maintenance command (not tied to any window).
When to Use
- After a load phase, to clean unused uploads.
- If a pipeline was cancelled and you want to reclaim memory.
- When switching scenes and you no longer need staged buffers.
Arguments
None.
Example
javascript
engine.send({
type: 'CmdUploadBufferDiscardAll'
});
Response
Returns CmdResultUploadBufferDiscardAll:
| Field | Type | Description |
|---|---|---|
success |
bool |
Whether the discard completed |
discardedCount |
u32 |
Number of uploads discarded |
message |
String |
Status or error message |
Notes
- Uploads are one-shot by design. If you need the data again, upload again.
- Discarding is safe for buffers that were never consumed.
Documentation Vulfram Core