Explorar o código

Fix webGPU detection

David Catuhe %!s(int64=4) %!d(string=hai) anos
pai
achega
4c98b6cf57
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Playground/src/components/commandBarComponent.tsx

+ 1 - 1
Playground/src/components/commandBarComponent.tsx

@@ -88,7 +88,7 @@ export class CommandBarComponent extends React.Component<ICommandBarComponentPro
             }
         ];
 
-        if (WebGPUEngine.IsSupported) {
+        if (!!navigator.gpu) {
             engineOptions.splice(0,0, {
                 label: "WebGPU",
                 storeKey: "engineVersion",