@webgpu/types
Advanced tools
Comparing version 0.0.36 to 0.0.37
@@ -9,2 +9,4 @@ // https://github.com/gpuweb/gpuweb/blob/38236513beaf98e1579b212c0df6f33bd19691ab/spec/index.bs | ||
// plus #1367 which renamed defaultQueue to queue | ||
// plus #1014 which made bytesPerRow optional | ||
// plus #1375 which renamed to GPUImageCopyX (but without removing old names) | ||
@@ -312,13 +314,19 @@ export {}; | ||
export interface GPUTextureDataLayout { | ||
/** @deprecated */ | ||
export type GPUTextureDataLayout = GPUImageDataLayout; | ||
export interface GPUImageDataLayout { | ||
offset?: number; | ||
bytesPerRow: number; | ||
bytesPerRow?: number; | ||
rowsPerImage?: number; | ||
} | ||
export interface GPUBufferCopyView extends GPUTextureDataLayout { | ||
/** @deprecated */ | ||
export type GPUBufferCopyView = GPUImageCopyBuffer; | ||
export interface GPUImageCopyBuffer extends GPUImageDataLayout { | ||
buffer: GPUBuffer; | ||
} | ||
export interface GPUTextureCopyView { | ||
/** @deprecated */ | ||
export type GPUTextureCopyView = GPUImageCopyTexture; | ||
export interface GPUImageCopyTexture { | ||
texture: GPUTexture; | ||
@@ -325,0 +333,0 @@ mipLevel?: number; |
@@ -6,3 +6,3 @@ { | ||
"bugs": "https://github.com/gpuweb/types/issues", | ||
"version": "0.0.36", | ||
"version": "0.0.37", | ||
"main": "", | ||
@@ -9,0 +9,0 @@ "types": "dist/index.d.ts", |
@@ -9,2 +9,3 @@ # Typescript Type Definitions for WebGPU | ||
## What are declaration files? | ||
@@ -14,14 +15,13 @@ | ||
## How can I get them? | ||
### npm | ||
## How can I use them? | ||
```sh | ||
npm install --save @webgpu/types | ||
``` | ||
### Install | ||
### yarn | ||
- npm: `npm install --save @webgpu/types` | ||
- yarn: `yarn add @webgpu/types` | ||
```sh | ||
yarn add @webgpu/types | ||
``` | ||
### Configure | ||
- webpack: add to `webpack.config.js`: `"types": ["@webgpu/types"]` | ||
- others: TODO |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53763
1642