Procházet zdrojové kódy

Fix webGPU detection

David Catuhe před 4 roky
rodič
revize
4c98b6cf57

+ 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",