core: indirect draw passes, device feature list, drop handles-specific bundle heuristics

Amp-Thread-ID: https://ampcode.com/threads/T-01a0b2dd-db32-712d-99ce-12ce4a86d979
Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-09-18 05:31:11 +00:00
co-authored by heaust
parent dda602c4a2
commit 49c80a209e
11 changed files with 123 additions and 56 deletions
+4 -3
View File
@@ -129,6 +129,7 @@ function deserialize(serialized: string) {
export class YawnCore {
readonly ready = Promise.resolve();
readonly features = new Set(["timestamp-query", "indirect-first-instance"]);
readonly graphs: any[] = [];
readonly serializedGraphs: string[] = [];
readonly loadouts: string[] = [];
@@ -171,11 +172,11 @@ export class YawnCore {
return Promise.resolve();
}
allocateObject(name: string) {
allocateObject(name: string, count = 1) {
const id = this.#nextObjects.get(name) ?? 0;
this.#nextObjects.set(name, id + 1);
this.#nextObjects.set(name, id + count);
const rows = this.array(name);
rows.resize(id + 1);
rows.resize(id + count);
return Promise.resolve(id);
}