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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user