UNPKG

@deck.gl/layers

Version:

deck.gl core layers

38 lines (37 loc) 854 B
// deck.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors const uniformBlockWGSL = /* wgsl */ `\ struct LineUniforms { widthScale: f32, widthMinPixels: f32, widthMaxPixels: f32, useShortestPath: f32, widthUnits: i32, }; @group(0) @binding(1) var<uniform> line: LineUniforms; `; const uniformBlockGLSL = /* glsl */ `\ uniform lineUniforms { float widthScale; float widthMinPixels; float widthMaxPixels; float useShortestPath; highp int widthUnits; } line; `; export const lineUniforms = { name: 'line', source: uniformBlockWGSL, vs: uniformBlockGLSL, fs: uniformBlockGLSL, uniformTypes: { widthScale: 'f32', widthMinPixels: 'f32', widthMaxPixels: 'f32', useShortestPath: 'f32', widthUnits: 'i32' } }; //# sourceMappingURL=line-layer-uniforms.js.map