Add type "type" and remove in/out storage qualifiers

This commit is contained in:
Will Usher 2021-09-19 11:13:09 -07:00
parent cb0f33e9a9
commit 986e4f61ee
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.swp

View file

@ -16,10 +16,11 @@ syn keyword wgslTypes mat2x2 mat2x3 mat2x4 mat3x2 mat3x3 mat3x4 mat4x2 mat4x3 ma
syn keyword wgslTypes array
" TODO: match struct
syn keyword wgslTypes struct
syn keyword wgslTypes type
" TODO: since token 'handle' is reserved and it's never used in a wgsl
" program, shoud we set this to a keyword?
syn keyword wgslStorageClasses handle
syn keyword wgslStorageClasses in out function private workgroup uniform storage handle
syn keyword wgslStorageClasses function private workgroup uniform storage handle
syn keyword wgslPointerTypes ptr
" Texel Format