Browse Source

Remove @webgpu/types dependency

Popov72 5 years ago
parent
commit
2925508960
4 changed files with 1020 additions and 3 deletions
  1. 0 1
      package.json
  2. 1 1
      src/Engines/webgpuEngine.ts
  3. 1018 0
      src/LibDeclarations/webgpu.d.ts
  4. 1 1
      src/tsconfig.json

+ 0 - 1
package.json

@@ -49,7 +49,6 @@
         "@types/react-color": "^3.0.2",
         "@types/react-color": "^3.0.2",
         "@types/react-dom": "^16.9.8",
         "@types/react-dom": "^16.9.8",
         "@types/sinon": "^9.0.4",
         "@types/sinon": "^9.0.4",
-        "@webgpu/types": "0.0.31",
         "ajv": "^6.12.2",
         "ajv": "^6.12.2",
         "awesome-typescript-loader": "^5.2.1",
         "awesome-typescript-loader": "^5.2.1",
         "base64-font-loader": "^0.0.4",
         "base64-font-loader": "^0.0.4",

+ 1 - 1
src/Engines/webgpuEngine.ts

@@ -299,7 +299,7 @@ export class WebGPUEngine extends Engine {
         // Init caps
         // Init caps
         // TODO WEBGPU Real Capability check once limits will be working.
         // TODO WEBGPU Real Capability check once limits will be working.
 
 
-        this._caps = this._caps = {
+        this._caps = {
             maxTexturesImageUnits: 16,
             maxTexturesImageUnits: 16,
             maxVertexTextureImageUnits: 16,
             maxVertexTextureImageUnits: 16,
             maxCombinedTexturesImageUnits: 32,
             maxCombinedTexturesImageUnits: 32,

File diff suppressed because it is too large
+ 1018 - 0
src/LibDeclarations/webgpu.d.ts


+ 1 - 1
src/tsconfig.json

@@ -1,7 +1,7 @@
 {
 {
     "extends": "../tsconfigRules",
     "extends": "../tsconfigRules",
     "compilerOptions": {
     "compilerOptions": {
-        "types": ["@webgpu/types"],
+        "types": [],
         "baseUrl": "./",
         "baseUrl": "./",
         "rootDir": "./"
         "rootDir": "./"
     }
     }