- add
workgroupUniformLoad
builtin and missingdot
builtins - formatter: preserve linebreaks in function calls
- ignore
#if
directives - use proper inlay hint API (thanks to @themcat wgsl-analyzer#98)
- fix
textureDimensions
to returnu32
instead ofi32
- allow predeclared type aliases in constructors (
vec32f(0.0)
) wgslfmt
: add--check
mode and inplace file writing
- add more missing builtins
- support identifiers using correct XID_Start/XID_Continue sets
- parse override declaraionts
- improve parser recovery
- fixes version mismatch between wgsl-analyzer server and binary
- Show pre-existing diagnostics on file open
- properly report that only
file
-schemed paths are supported, to prevent overwriting diffs
- lint for parsing precedence issues
- support type construction expressions properly
- avoid panicking in cases where there are more
endif
s thanif
s - handle the scopes of bindings properly (this enables shadowing)
- clear diagnostics on file close
- format variables
- remove unused parenthesis on format
- avoid panic on number with suffix
- update naga versions (now supports
0.9
,0.10
andmain
)
- add
ceil
builtin - fix panic due to wrong file in diagnostic
- allow exponentials without decimal point
- support
bitcast
- replace
${workspaceFolder}
in import paths (other variables not supported yet)
- support while
- rename
firstLeadingBit
/firstTrailingBit
builtins - add instructions for vim usage
- fix parser hang
- implement #import's in function param list
- add naga 0.9 option
- update naga main
- fix issue where the
wgsl_analyzer
binary wasn't included in the.vsix
extension file
- add naga parsing/validation diagnostics (
wgsl-analyzer.diagnostics.nagaValidationErrors
enabled by default,wgsl-analyzer.diagnostics.nagaParsingErrors
not). - Naga version can be configured to be either
0.8
(default) ormain
:wgsl-analyzer.diagnostics.nagaVersion": "0.8"
- better spans in diagnostics
- parse push constants
- fix handling of
>>
, e.g. forarray<vec3<f32>>
- support
binding_array
s - verify that vscode extension and server binary match
- add
textureGather
/textureGatherCompare
builtins - fix an infinite loop in the parser
- experimental: struct layout hints with
wgsl-analyzer.inlayHints.structLayoutHints
- handle
,
as struct field separator
- handle windows line endings
- implement goto definition for types
- ignore
#define_import_path
- handle
switch
statement - some formatting fixes
- include prebuilt
wgsl_analyzer
in github releases
- support
#ifdef
,#ifndef
,#else
,#endif
preprocessor macros - add
Show full WGSL source
command that resolves imports - fix reloading of configuration for imports
- some more code formatting (#18)
- add inlay hints (configurable via
wgsl-analyzer.inlayHints.{enabled,typeHints,parameterHints,typeVerbosity}
) - grey out
#ifdef
d code
- fix
smoothStep
to work withvecN<f32>
- implement
@
-attributes ([[]]
still supported) - add bit manipulation builtins
- support
file://
andhttp[s]://
schemas in custom imports - implement type aliases (#14)
- fix missing matrix multiplication type rules
- fix multisampled textures (#9)
- implement
i++
,i--
- better error message involving operator type errors
- better parser recovrey
elseif
->else if
- remove
[[block]]
attribute lint
- implement
ptr
types - fix
pack2x16
andtextureLoad
builtins - add proper README