-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglsl-lsp.toml
More file actions
31 lines (25 loc) · 977 Bytes
/
Copy pathglsl-lsp.toml
File metadata and controls
31 lines (25 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Config for glslint, a luma.gl/deck.gl-aware GLSL checker + LSP.
# Mirrors the `new Model({ modules: [...] })` bindings in src/WindLayer.ts so each
# shader is validated against exactly the modules it uses at link time. Without
# this file glslint auto-derives those bindings from the Model() calls; it's kept
# for the `types` drift cross-check below (modules.ts uniformTypes vs the GLSL UBO).
[[module]]
name = "windUniforms"
source = "src/shaders/windUniforms.glsl"
types = "src/modules.ts" # cross-check the UBO block against modules.ts uniformTypes
[[module]]
name = "blitUniforms"
source = "src/shaders/blitUniforms.glsl"
types = "src/modules.ts"
[[module]]
name = "project32"
builtin = true # deck.gl project32 builtins (resolved from node_modules)
[[shader]]
match = "draw.*.glsl"
modules = ["project32", "windUniforms"]
[[shader]]
match = "update.*.glsl"
modules = ["windUniforms"]
[[shader]]
match = "blit.*.glsl"
modules = ["blitUniforms"]