Enable WebGPU support / Logging

This commit is contained in:
cryptofyre 2021-12-20 18:34:21 -06:00
parent 20c5cc630a
commit a5b2533596
3 changed files with 15 additions and 0 deletions

View file

@ -1945,3 +1945,11 @@ var checkIfScrollIsStatic = setInterval(() => {
}
}, 50);
// WebGPU Console Notification
async function webGPU() {
const currentGPU = await navigator.gpu.requestAdapter()
console.log("WebGPU enabled on", currentGPU.name,"with feature ID", currentGPU.features.size)
}
webGPU().then()