Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@webgpu/types

Package Overview
Dependencies
Maintainers
4
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webgpu/types - npm Package Compare versions

Comparing version 0.0.36 to 0.0.37

16

dist/index.d.ts

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc