webgpu works on linux now

Signed-off-by: Core <core@coredev.uk>
This commit is contained in:
Core 2022-09-13 18:07:23 +01:00
parent 588a960965
commit fff57f23ac
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0

View file

@ -78,6 +78,9 @@ export class AppEvents {
case "webgpu": case "webgpu":
console.info("WebGPU is enabled."); console.info("WebGPU is enabled.");
app.commandLine.appendSwitch("enable-unsafe-webgpu"); app.commandLine.appendSwitch("enable-unsafe-webgpu");
if (process.platform === "linux") {
app.commandLine.appendSwitch("enable-features", "Vulkan");
}
break; break;
case "disabled": case "disabled":
@ -328,10 +331,10 @@ export class AppEvents {
{ {
visible: visible, visible: visible,
label: 'track info', label: 'track info',
enabled: false, enabled: false,
}, },
{type: 'separator'}, {type: 'separator'},
*/ */