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

@luma.gl/webgpu

Package Overview
Dependencies
Maintainers
7
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luma.gl/webgpu - npm Package Compare versions

Comparing version 9.0.0-alpha.53 to 9.0.0-alpha.54

9

dist/adapter/resources/webgpu-buffer.d.ts

@@ -17,2 +17,11 @@ /// <reference types="dist" />

}
/** Maps the memory so that it can be read *
// abstract mapAsync(mode, byteOffset, byteLength): Promise<void>
/** Get the mapped range of data for reading or writing *
// abstract getMappedRange(byteOffset, byteLength): ArrayBuffer;
/** unmap makes the contents of the buffer available to the GPU again *
// abstract unmap(): void;
*/
//# sourceMappingURL=webgpu-buffer.d.ts.map

6

package.json
{
"name": "@luma.gl/webgpu",
"version": "9.0.0-alpha.53",
"version": "9.0.0-alpha.54",
"description": "WebGPU adapter for the luma.gl API",

@@ -40,7 +40,7 @@ "type": "module",

"@babel/runtime": "^7.0.0",
"@luma.gl/core": "9.0.0-alpha.53",
"@luma.gl/core": "9.0.0-alpha.54",
"@probe.gl/env": "^4.0.2",
"@webgpu/types": "^0.1.34"
},
"gitHead": "f8939f1cf52a15f11ec053d4906e40f0b2a86836"
"gitHead": "6028eb651303eadbc8f25e86d135d28f118fa3cf"
}

@@ -96,1 +96,53 @@ // WEBGPU Buffer implementation

}
/*
// Convenience API
/** Read data from the buffer *
async readAsync(options: {
byteOffset?: number,
byteLength?: number,
map?: boolean,
unmap?: boolean
}): Promise<ArrayBuffer> {
if (options.map ?? true) {
await this.mapAsync(Buffer.MAP_READ, options.byteOffset, options.byteLength);
}
const arrayBuffer = this.getMappedRange(options.byteOffset, options.byteLength);
if (options.unmap ?? true) {
this.unmap();
}
return arrayBuffer;
}
/** Write data to the buffer *
async writeAsync(options: {
data: ArrayBuffer,
byteOffset?: number,
byteLength?: number,
map?: boolean,
unmap?: boolean
}): Promise<void> {
if (options.map ?? true) {
await this.mapAsync(Buffer.MAP_WRITE, options.byteOffset, options.byteLength);
}
const arrayBuffer = this.getMappedRange(options.byteOffset, options.byteLength);
const destArray = new Uint8Array(arrayBuffer);
const srcArray = new Uint8Array(options.data);
destArray.set(srcArray);
if (options.unmap ?? true) {
this.unmap();
}
}
*/
// Mapped API (WebGPU)
/** Maps the memory so that it can be read *
// abstract mapAsync(mode, byteOffset, byteLength): Promise<void>
/** Get the mapped range of data for reading or writing *
// abstract getMappedRange(byteOffset, byteLength): ArrayBuffer;
/** unmap makes the contents of the buffer available to the GPU again *
// abstract unmap(): void;
*/

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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