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
96
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.27 to 0.0.28

23

dist/constants.d.ts
export declare const enum ExtensionName {
AnisotropicFiltering = "anisotropic-filtering"
TextureCompressionBC = "texture-compression-bc"
}

@@ -14,4 +14,6 @@ export declare const enum AddressMode {

Sampler = "sampler",
ComparisonSampler = "comparison-sampler",
SampledTexture = "sampled-texture",
StorageTexture = "storage-texture"
ReadonlyStorageTexture = "readonly-storage-texture",
WriteonlyStorageTexture = "writeonly-storage-texture"
}

@@ -126,3 +128,3 @@ export declare const enum BlendFactor {

RGB10A2Unorm = "rgb10a2unorm",
RGB11B10Float = "rg11b10float",
RG11B10Float = "rg11b10float",
RG32Uint = "rg32uint",

@@ -191,2 +193,10 @@ RG32Sint = "rg32sint",

}
export declare const enum CompilationMessageType {
Error = "error",
Warning = "warning",
Info = "info"
}
export declare const enum QueryType {
Occlusion = "occlusion"
}
export declare const enum BufferUsage {

@@ -201,3 +211,4 @@ MapRead = 1,

Storage = 128,
Indirect = 256
Indirect = 256,
QueryResolve = 512
}

@@ -223,1 +234,5 @@ export declare const enum ColorWrite {

}
export declare const enum MapMode {
Read = 1,
Write = 2
}
"use strict";
// https://github.com/gpuweb/gpuweb/blob/402b69138fbedf4a3c9c85cd1bf7e1cc27c1b34e/spec/index.bs
// https://github.com/gpuweb/gpuweb/blob/01b20b4ad93fabae1e8e0d7752515f69708d33e0/spec/index.bs
Object.defineProperty(exports, "__esModule", { value: true });

@@ -8,3 +8,3 @@ // tslint:disable:variable-name

(function (ExtensionName) {
ExtensionName["AnisotropicFiltering"] = "anisotropic-filtering";
ExtensionName["TextureCompressionBC"] = "texture-compression-bc";
})(ExtensionName = exports.ExtensionName || (exports.ExtensionName = {}));

@@ -23,4 +23,6 @@ var AddressMode;

BindingType["Sampler"] = "sampler";
BindingType["ComparisonSampler"] = "comparison-sampler";
BindingType["SampledTexture"] = "sampled-texture";
BindingType["StorageTexture"] = "storage-texture";
BindingType["ReadonlyStorageTexture"] = "readonly-storage-texture";
BindingType["WriteonlyStorageTexture"] = "writeonly-storage-texture";
})(BindingType = exports.BindingType || (exports.BindingType = {}));

@@ -149,3 +151,3 @@ var BlendFactor;

TextureFormat["RGB10A2Unorm"] = "rgb10a2unorm";
TextureFormat["RGB11B10Float"] = "rg11b10float";
TextureFormat["RG11B10Float"] = "rg11b10float";
TextureFormat["RG32Uint"] = "rg32uint";

@@ -218,2 +220,12 @@ TextureFormat["RG32Sint"] = "rg32sint";

})(TextureAspect = exports.TextureAspect || (exports.TextureAspect = {}));
var CompilationMessageType;
(function (CompilationMessageType) {
CompilationMessageType["Error"] = "error";
CompilationMessageType["Warning"] = "warning";
CompilationMessageType["Info"] = "info";
})(CompilationMessageType = exports.CompilationMessageType || (exports.CompilationMessageType = {}));
var QueryType;
(function (QueryType) {
QueryType["Occlusion"] = "occlusion";
})(QueryType = exports.QueryType || (exports.QueryType = {}));
// Bit fields

@@ -231,2 +243,3 @@ var BufferUsage;

BufferUsage[BufferUsage["Indirect"] = 256] = "Indirect";
BufferUsage[BufferUsage["QueryResolve"] = 512] = "QueryResolve";
})(BufferUsage = exports.BufferUsage || (exports.BufferUsage = {}));

@@ -255,1 +268,6 @@ var ColorWrite;

})(TextureUsage = exports.TextureUsage || (exports.TextureUsage = {}));
var MapMode;
(function (MapMode) {
MapMode[MapMode["Read"] = 1] = "Read";
MapMode[MapMode["Write"] = 2] = "Write";
})(MapMode = exports.MapMode || (exports.MapMode = {}));

@@ -7,2 +7,3 @@ // https://github.com/gpuweb/gpuweb/blob/01b20b4ad93fabae1e8e0d7752515f69708d33e0/spec/index.bs

// including #678 which adds GPUBindGroupLayoutEntry.minBufferBindingSize
// including #605 which adds new mapping, but without removing the old mapping

@@ -234,2 +235,8 @@ export {};

export type GPUMapModeFlags = number;
export const GPUMapMode: {
READ: 0x1;
WRITE: 0x2;
};
export interface GPUBindGroupEntry {

@@ -523,3 +530,3 @@ binding: number;

mapAsync(offset?: number, size?: number): Promise<void>;
mapAsync(mode: GPUMapModeFlags, offset?: number, size?: number): Promise<void>;
getMappedRange(offset?: number, size?: number): ArrayBuffer;

@@ -526,0 +533,0 @@

2

package.json
{
"name": "@webgpu/types",
"version": "0.0.27",
"version": "0.0.28",
"main": "",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -237,1 +237,5 @@ // https://github.com/gpuweb/gpuweb/blob/01b20b4ad93fabae1e8e0d7752515f69708d33e0/spec/index.bs

}
export const enum MapMode {
Read = 0x01,
Write = 0x02,
}
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