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

@antv/g-plugin-device-renderer

Package Overview
Dependencies
Maintainers
58
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-plugin-device-renderer - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

3

dist/geometries/BufferGeometry.d.ts

@@ -31,2 +31,5 @@ import { AABB } from '@antv/g';

}
export declare enum GeometryEvent {
CHANGED = "changed"
}
/**

@@ -33,0 +36,0 @@ * just hold descriptors of buffers & indices, won't use underlying GPU resources

import type { Tuple4Number } from '@antv/g';
import { EventEmitter } from 'eventemitter3';
import type { Mesh } from '../Mesh';

@@ -87,2 +88,5 @@ import type { CompareMode, CullMode, Device, Format, FrontFaceMode, StencilOp, Texture } from '../platform';

}
export declare enum MaterialEvent {
CHANGED = "changed"
}
/**

@@ -92,3 +96,3 @@ * an encapsulation on top of shaders

*/
export declare abstract class Material<T extends IMaterial = any> {
export declare abstract class Material<T extends IMaterial = any> extends EventEmitter {
protected device: Device;

@@ -179,4 +183,5 @@ protected props: T;

setUniforms(uniforms: Record<string, null | number | number[] | Float32Array | Texture>): void;
private dispatchMutationEvent;
}
export {};
//# sourceMappingURL=Material.d.ts.map

9

dist/Mesh.d.ts
import { DisplayObject } from '@antv/g';
import type { ParsedBaseStyleProps, BaseStyleProps, DisplayObjectConfig } from '@antv/g';
import type { ParsedBaseStyleProps, BaseStyleProps, DisplayObjectConfig, CSSUnitValue } from '@antv/g';
import type { BufferGeometry } from './geometries';
import type { Material } from './materials';
export interface MeshStyleProps extends BaseStyleProps {
x?: number | string;
y?: number | string;
z?: number | string;
geometry: BufferGeometry;

@@ -10,2 +13,5 @@ material: Material;

export interface ParsedMeshStyleProps extends ParsedBaseStyleProps {
x: CSSUnitValue;
y: CSSUnitValue;
z: CSSUnitValue;
geometry: BufferGeometry;

@@ -15,3 +21,2 @@ material: Material;

export declare class Mesh<GeometryProps = any> extends DisplayObject<GeometryProps & MeshStyleProps> {
static tag: string;
constructor({ style, ...rest }: DisplayObjectConfig<GeometryProps & MeshStyleProps>);

@@ -18,0 +23,0 @@ destroy(): void;

@@ -11,14 +11,15 @@ import { Camera } from '@antv/g';

import { LightPool } from '../LightPool';
/**
* WebGPU has max vertex attribute num(8)
*/
export declare enum VertexAttributeBufferIndex {
MODEL_MATRIX = 0,
FILL = 1,
STROKE = 2,
PACKED_STYLE1 = 3,
PACKED_STYLE2 = 4,
PICKING_COLOR = 5,
POSITION = 6,
NORMAL = 7,
UV = 8,
BARYCENTRIC = 9,
MAX = 10
FILL_STROKE = 1,
PACKED_STYLE = 2,
PICKING_COLOR = 3,
POSITION = 4,
NORMAL = 5,
UV = 6,
BARYCENTRIC = 7,
MAX = 8
}

@@ -89,2 +90,4 @@ /**

init(device: Device, renderingService: RenderingService): void;
observeGeometryChanged(): void;
observeMaterialChanged(): void;
/**

@@ -91,0 +94,0 @@ * should be merged into current InstancedMesh

@@ -8,7 +8,4 @@ import { GeometryAABBUpdater } from '@antv/g';

depth: number;
x: number;
y: number;
z: number;
};
}
//# sourceMappingURL=MeshUpdater.d.ts.map

@@ -157,2 +157,5 @@ /// <reference types="offscreencanvas" />

}
export declare enum TextureEvent {
LOADED = "loaded"
}
export declare enum TextureDimension {

@@ -457,3 +460,2 @@ n2D = 0,

queryTextureFormatSupported: (format: Format, width: number, height: number) => boolean;
queryPipelineReady: (o: RenderPipeline) => boolean;
queryPlatformAvailable: () => boolean;

@@ -460,0 +462,0 @@ queryVendorInfo: () => VendorInfo;

@@ -6,2 +6,3 @@ export * from './DeviceProgram';

export * from './RenderHelper';
export * from './RenderGraphHelpers';
export * from './RenderInst';

@@ -14,2 +15,3 @@ export * from './RenderInstList';

export * from './utils';
export * from './interfaces';
//# sourceMappingURL=index.d.ts.map

@@ -5,2 +5,3 @@ import type { Device, RenderTarget, Texture } from '../platform';

import { RenderGraphPass } from './RenderGraphPass';
import { RGRenderTarget } from './RenderTarget';
import type { RGRenderTargetDescription } from './RenderTargetDescription';

@@ -10,3 +11,3 @@ export declare class RenderGraph implements RGGraphBuilder {

private currentPass;
private renderTargetDeadPool;
renderTargetDeadPool: RGRenderTarget[];
private singleSampledTextureDeadPool;

@@ -13,0 +14,0 @@ constructor(device: Device);

@@ -125,9 +125,2 @@ import type { RenderPipelineDescriptor, InputState, Program, MegaStateDescriptor, InputLayout, BindingLayoutDescriptor, SamplerBinding, RenderPass } from '../platform';

/**
* Tests whether the underlying pipeline for this {@see RenderInst} is ready.
*
* By default, {@see RenderInstManager} will skip any insts with non-ready pipelines. If you wish
* to override this and force the render inst to draw, please use {@see setAllowSkippingIfPipelineNotReady}.
*/
queryPipelineReady(cache: RenderCache): boolean;
/**
* Sets whether this render inst should be skipped if the render pipeline isn't ready.

@@ -134,0 +127,0 @@ *

import type { RenderingService, RenderingPlugin } from '@antv/g';
import type { Device, SwapChain, Texture, TextureDescriptor } from './platform';
import { RenderInstList } from './render/RenderInstList';
import { RenderInstList } from './render';
export declare const SceneUniformBufferIndex = 0;

@@ -46,6 +46,2 @@ export declare enum SceneUniform {

/**
* auto downgrade from WebGPU to WebGL2 & 1
*/
private createSwapChain;
/**
* load texture in an async way and render when loaded

@@ -52,0 +48,0 @@ */

export declare function enumToObject(enumObject: any): Record<string, number>;
export declare function compareDefines(d1: Record<string, any>, d2: Record<string, any>): boolean;
//# sourceMappingURL=enum.d.ts.map
{
"name": "@antv/g-plugin-device-renderer",
"version": "1.0.1",
"version": "1.1.0",
"description": "A G plugin of renderer implementation with GPUDevice",

@@ -33,3 +33,3 @@ "main": "dist/index.js",

"dependencies": {
"@antv/g-shader-components": "^1.0.19",
"@antv/g-shader-components": "^1.1.0",
"@mapbox/tiny-sdf": "^2.0.4",

@@ -64,3 +64,3 @@ "@types/offscreencanvas": "^2019.6.4",

"homepage": "https://github.com/antvis/g#readme",
"gitHead": "98a28060c701e8c9c6c23fca672534677c4401b3"
"gitHead": "ffbd006ec52c899e53e84671ca160d49dd63f3e9"
}

Sorry, the diff of this file is not supported yet

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

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

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

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 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