UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

79 lines (78 loc) 2.64 kB
/** * WebGPU-style string constants for deck.gl 9 / luma.gl 9 render parameters. * These replace the old GL.* enum values that were used in deck.gl 8. */ export declare const BLEND_FACTOR: { readonly ZERO: "zero"; readonly ONE: "one"; readonly SRC: "src"; readonly ONE_MINUS_SRC: "one-minus-src"; readonly SRC_ALPHA: "src-alpha"; readonly ONE_MINUS_SRC_ALPHA: "one-minus-src-alpha"; readonly DST: "dst"; readonly ONE_MINUS_DST: "one-minus-dst"; readonly DST_ALPHA: "dst-alpha"; readonly ONE_MINUS_DST_ALPHA: "one-minus-dst-alpha"; }; export declare const BLEND_OPERATION: { readonly ADD: "add"; readonly SUBTRACT: "subtract"; readonly REVERSE_SUBTRACT: "reverse-subtract"; readonly MIN: "min"; readonly MAX: "max"; }; export declare const CULL_MODE: { readonly NONE: "none"; readonly FRONT: "front"; readonly BACK: "back"; }; export declare const FILTER_MODE: { readonly NEAREST: "nearest"; readonly LINEAR: "linear"; }; export declare const ADDRESS_MODE: { readonly CLAMP_TO_EDGE: "clamp-to-edge"; readonly REPEAT: "repeat"; readonly MIRROR_REPEAT: "mirror-repeat"; }; export declare const TEXTURE_FORMAT: { readonly R8_UINT: "r8uint"; readonly R16_UINT: "r16uint"; readonly R32_UINT: "r32uint"; readonly R8_SINT: "r8sint"; readonly R16_SINT: "r16sint"; readonly R32_SINT: "r32sint"; readonly R32_FLOAT: "r32float"; readonly RGBA8_UNORM: "rgba8unorm"; }; export declare const DEPTH_STENCIL_FORMAT: { readonly DEPTH24_PLUS: "depth24plus"; }; export declare const TEXTURE_USAGE: { readonly COPY_SRC: 1; readonly COPY_DST: 2; readonly SAMPLE: 4; readonly RENDER_ATTACHMENT: 16; }; export declare const TOPOLOGY: { readonly TRIANGLE_LIST: "triangle-list"; readonly TRIANGLE_STRIP: "triangle-strip"; readonly LINE_LIST: "line-list"; readonly LINE_STRIP: "line-strip"; readonly POINT_LIST: "point-list"; }; /** * Standard alpha blending: srcAlpha / oneMinusSrcAlpha for both color and alpha. * Include `blend: true` since per-layer parameters override global ones in deck.gl 9. */ export declare const BLEND_PARAMS_ALPHA: { readonly blend: true; readonly blendColorSrcFactor: "src-alpha"; readonly blendColorDstFactor: "one-minus-src-alpha"; readonly blendAlphaSrcFactor: "one"; readonly blendAlphaDstFactor: "one-minus-src-alpha"; readonly blendColorOperation: "add"; readonly blendAlphaOperation: "add"; }; export declare const GL_BLEND_FUNC_TO_WEBGPU: Record<string, string>; export declare const GL_BLEND_EQ_TO_WEBGPU: Record<string, string>;