New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@luma.gl/webgpu

Package Overview
Dependencies
Maintainers
7
Versions
111
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.17 to 9.0.0-alpha.19

2

dist/adapter/resources/webgpu-buffer.d.ts
/// <reference types="dist" />
import { Buffer, BufferProps } from '@luma.gl/api';
import type WebGPUDevice from '../webgpu-device';
import type { WebGPUDevice } from '../webgpu-device';
export default class WebGPUBuffer extends Buffer {

@@ -5,0 +5,0 @@ readonly device: WebGPUDevice;

/// <reference types="dist" />
import { CommandEncoder, CommandEncoderProps, Buffer, Texture } from '@luma.gl/api';
import WebGPUDevice from '../webgpu-device';
import { WebGPUDevice } from '../webgpu-device';
export default class WebGPUCommandEncoder extends CommandEncoder {

@@ -5,0 +5,0 @@ readonly device: WebGPUDevice;

/// <reference types="dist" />
import { ComputePass, ComputePassProps, ComputePipeline, Buffer, Binding } from '@luma.gl/api';
import WebGPUDevice from '../webgpu-device';
import { WebGPUDevice } from '../webgpu-device';
export default class WebGPUComputePass extends ComputePass {

@@ -5,0 +5,0 @@ readonly device: WebGPUDevice;

/// <reference types="dist" />
import { ComputePipeline, ComputePipelineProps } from '@luma.gl/api';
import WebGPUDevice from '../webgpu-device';
import { WebGPUDevice } from '../webgpu-device';
/** Creates a new compute pipeline when parameters change */

@@ -5,0 +5,0 @@ export default class WebGPUComputePipeline extends ComputePipeline {

/// <reference types="dist" />
import { ExternalTexture, ExternalTextureProps, Sampler, SamplerProps } from '@luma.gl/api';
import type WebGPUDevice from '../webgpu-device';
import type { WebGPUDevice } from '../webgpu-device';
import WebGPUSampler from './webgpu-sampler';

@@ -5,0 +5,0 @@ /**

/// <reference types="dist" />
import type { FramebufferProps } from '@luma.gl/api';
import { Framebuffer } from '@luma.gl/api';
import WebGPUDevice from '../webgpu-device';
import { WebGPUDevice } from '../webgpu-device';
import WebGPUTexture from './webgpu-texture';

@@ -6,0 +6,0 @@ /**

/// <reference types="dist" />
import type { RenderPassProps, RenderPassParameters, Binding } from '@luma.gl/api';
import { Buffer, RenderPass, RenderPipeline } from '@luma.gl/api';
import WebGPUDevice from '../webgpu-device';
import { WebGPUDevice } from '../webgpu-device';
import WebGPURenderPipeline from './webgpu-render-pipeline';

@@ -6,0 +6,0 @@ export default class WebGPURenderPass extends RenderPass {

/// <reference types="dist" />
import type { Binding, RenderPass } from '@luma.gl/api';
import { Buffer, RenderPipeline, RenderPipelineProps } from '@luma.gl/api';
import type WebGPUDevice from '../webgpu-device';
import type { WebGPUDevice } from '../webgpu-device';
import type WebGPUShader from './webgpu-shader';

@@ -6,0 +6,0 @@ import type WebGPURenderPass from './webgpu-render-pass';

/// <reference types="dist" />
import { Sampler, SamplerProps } from '@luma.gl/api';
import type WebGPUDevice from '../webgpu-device';
import type { WebGPUDevice } from '../webgpu-device';
export declare type WebGPUSamplerProps = SamplerProps & {

@@ -5,0 +5,0 @@ handle?: GPUSampler;

/// <reference types="dist" />
import type { ShaderProps, CompilerMessage } from '@luma.gl/api';
import { Shader } from '@luma.gl/api';
import type WebGPUDevice from '../webgpu-device';
import type { WebGPUDevice } from '../webgpu-device';
export declare type WebGPUShaderProps = ShaderProps & {

@@ -6,0 +6,0 @@ handle?: GPUShaderModule;

/// <reference types="dist" />
/// <reference types="offscreencanvas" />
import { Texture, TextureProps, Sampler, SamplerProps } from '@luma.gl/api';
import type WebGPUDevice from '../webgpu-device';
import type { WebGPUDevice } from '../webgpu-device';
import WebGPUSampler from './webgpu-sampler';

@@ -6,0 +6,0 @@ export default class WebGPUTexture extends Texture {

/// <reference types="dist" />
import type { Texture, TextureFormat, CanvasContextProps } from '@luma.gl/api';
import { CanvasContext } from '@luma.gl/api';
import WebGPUDevice from './webgpu-device';
import { WebGPUDevice } from './webgpu-device';
import WEBGPUFramebuffer from './resources/webgpu-framebuffer';

@@ -6,0 +6,0 @@ /**

@@ -16,3 +16,3 @@ /// <reference types="dist" />

/** WebGPU Device implementation */
export default class WebGPUDevice extends Device {
export declare class WebGPUDevice extends Device {
readonly handle: GPUDevice;

@@ -19,0 +19,0 @@ readonly adapter: GPUAdapter;

@@ -13,3 +13,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

import WebGPUCanvasContext from "./webgpu-canvas-context.js";
export default class WebGPUDevice extends Device {
export class WebGPUDevice extends Device {
static isSupported() {

@@ -16,0 +16,0 @@ return Boolean(typeof navigator !== 'undefined' && navigator.gpu);

@@ -1,2 +0,2 @@

export { default as WebGPUDevice } from './adapter/webgpu-device';
export { WebGPUDevice } from './adapter/webgpu-device';
export { default as WebGPUBuffer } from './adapter/resources/webgpu-buffer';

@@ -3,0 +3,0 @@ export { default as WebGPUTexture } from './adapter/resources/webgpu-texture';

@@ -1,2 +0,2 @@

export { default as WebGPUDevice } from "./adapter/webgpu-device.js";
export { WebGPUDevice } from "./adapter/webgpu-device.js";
export { default as WebGPUBuffer } from "./adapter/resources/webgpu-buffer.js";

@@ -3,0 +3,0 @@ export { default as WebGPUTexture } from "./adapter/resources/webgpu-texture.js";

{
"name": "@luma.gl/webgpu",
"version": "9.0.0-alpha.17",
"version": "9.0.0-alpha.19",
"description": "WebGPU adapter for the luma.gl API",

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

"@babel/runtime": "^7.0.0",
"@luma.gl/api": "9.0.0-alpha.17",
"@luma.gl/api": "9.0.0-alpha.19",
"@probe.gl/env": "^4.0.2",
"@webgpu/types": "^0.1.31"
},
"gitHead": "9385b56a95f5f53ee5f11d2ccef5b6114a527d94"
"gitHead": "d57e5fd81825ae4c7c23040ba63f54ad4ea7e972"
}
// WEBGPU Buffer implementation
import {Buffer, BufferProps} from '@luma.gl/api';
import type WebGPUDevice from '../webgpu-device';
import type {WebGPUDevice} from '../webgpu-device';

@@ -5,0 +5,0 @@ function getByteLength(props: BufferProps): number {

import {CommandEncoder, CommandEncoderProps, Buffer, Texture, cast} from '@luma.gl/api';
import WebGPUDevice from '../webgpu-device';
import {WebGPUDevice} from '../webgpu-device';
import WEBGPUBuffer from './webgpu-buffer';

@@ -4,0 +4,0 @@ import WebGPUTexture from './webgpu-texture';

import {ComputePass, ComputePassProps, ComputePipeline, Buffer, Binding, cast} from '@luma.gl/api';
import WebGPUDevice from '../webgpu-device';
import {WebGPUDevice} from '../webgpu-device';
import WebGPUBuffer from './webgpu-buffer';

@@ -4,0 +4,0 @@ // import WebGPUCommandEncoder from './webgpu-command-encoder';

// prettier-ignore
import {ComputePipeline, ComputePipelineProps, cast} from '@luma.gl/api';
import WebGPUDevice from '../webgpu-device';
import {WebGPUDevice} from '../webgpu-device';
import WebGPUShader from './webgpu-shader';

@@ -6,0 +6,0 @@

// luma.gl, MIT license
import {ExternalTexture, ExternalTextureProps, Sampler, SamplerProps} from '@luma.gl/api';
import type WebGPUDevice from '../webgpu-device';
import type {WebGPUDevice} from '../webgpu-device';
import WebGPUSampler from './webgpu-sampler';

@@ -5,0 +5,0 @@

import type {FramebufferProps, ColorTextureFormat} from '@luma.gl/api';
import {Framebuffer, Texture} from '@luma.gl/api';
import WebGPUDevice from '../webgpu-device';
import {WebGPUDevice} from '../webgpu-device';
// import WebGPUCanvasContext from '../webgpu-canvas-context';

@@ -5,0 +5,0 @@ import WEBGPUTexture from './webgpu-texture';

/*
import {Resource, Query, QueryProps} from '@luma.gl/api';
import WebGPUDevice from '../webgpu-device';
import {WebGPUDevice} from '../webgpu-device';

@@ -5,0 +5,0 @@ export type WebGPUQueryProps = QueryProps & {

import type {RenderPassProps, RenderPassParameters, Binding} from '@luma.gl/api';
import {Buffer, RenderPass, RenderPipeline, cast} from '@luma.gl/api';
import WebGPUDevice from '../webgpu-device';
import {WebGPUDevice} from '../webgpu-device';
import WebGPUBuffer from './webgpu-buffer';

@@ -5,0 +5,0 @@ // import WebGPUCommandEncoder from './webgpu-command-encoder';

@@ -11,3 +11,3 @@ import type {Binding, RenderPass} from '@luma.gl/api';

import type WebGPUDevice from '../webgpu-device';
import type {WebGPUDevice} from '../webgpu-device';
import type WebGPUBuffer from './webgpu-buffer';

@@ -14,0 +14,0 @@ import type WebGPUShader from './webgpu-shader';

import {Sampler, SamplerProps} from '@luma.gl/api';
import type WebGPUDevice from '../webgpu-device';
import type {WebGPUDevice} from '../webgpu-device';

@@ -4,0 +4,0 @@ export type WebGPUSamplerProps = SamplerProps & {

@@ -0,4 +1,6 @@

// luma.gl, MIT license
import type {ShaderProps, CompilerMessage} from '@luma.gl/api';
import {Shader, log} from '@luma.gl/api';
import type WebGPUDevice from '../webgpu-device';
import type {WebGPUDevice} from '../webgpu-device';

@@ -5,0 +7,0 @@ export type WebGPUShaderProps = ShaderProps & {

// luma.gl, MIT license
import {Texture, TextureProps, Sampler, SamplerProps} from '@luma.gl/api';
import {getWebGPUTextureFormat} from '../helpers/convert-texture-format';
import type WebGPUDevice from '../webgpu-device';
import type {WebGPUDevice} from '../webgpu-device';
import WebGPUSampler from './webgpu-sampler';

@@ -6,0 +6,0 @@

import type {Texture, TextureFormat, CanvasContextProps} from '@luma.gl/api';
import {CanvasContext, log} from '@luma.gl/api';
import {getWebGPUTextureFormat} from './helpers/convert-texture-format';
import WebGPUDevice from './webgpu-device';
import {WebGPUDevice} from './webgpu-device';
import WEBGPUFramebuffer from './resources/webgpu-framebuffer';

@@ -6,0 +6,0 @@

@@ -38,3 +38,3 @@ // prettier-ignore

/** WebGPU Device implementation */
export default class WebGPUDevice extends Device {
export class WebGPUDevice extends Device {
readonly handle: GPUDevice;

@@ -41,0 +41,0 @@ readonly adapter: GPUAdapter;

// luma.gl, MIT license
// WEBGPU ADAPTER
export {default as WebGPUDevice} from './adapter/webgpu-device';
export {WebGPUDevice} from './adapter/webgpu-device';

@@ -6,0 +6,0 @@ // WEBGPU CLASSES (typically not accessed directly)

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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