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
+6
View File
@@ -87,6 +87,12 @@ impl Core {
serde_json::to_string(&self.data.borrow().descriptors()).unwrap()
}
/// Optional WebGPU features the device was created with (for example `indirect-first-instance`).
pub fn features(&self) -> String {
let gpu = self.gpu.borrow();
serde_json::to_string(&gpu.as_ref().map(|gpu| &gpu.features[..]).unwrap_or(&[])).unwrap()
}
pub fn create_rows(
&self,
name: String,