chore: add zero-dependency static launcher
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
const statusElements = document.querySelectorAll("[data-runtime-status]");
|
||||
const hasWebGpu = "gpu" in navigator;
|
||||
|
||||
for (const statusElement of statusElements) {
|
||||
statusElement.textContent = hasWebGpu ? "WebGPU 준비됨" : "CPU fallback";
|
||||
statusElement.classList.toggle("status-chip--warning", !hasWebGpu);
|
||||
statusElement.classList.toggle("status-chip--neutral", hasWebGpu);
|
||||
}
|
||||
Reference in New Issue
Block a user