João Capucho
|
f8c8d192ae
|
[glsl-in] WIP expression parsing
|
2021-05-19 16:24:26 -04:00 |
|
Imbris
|
3073ade8a4
|
[glsl-in] improved WIP parsing for declarations
|
2021-05-19 16:24:26 -04:00 |
|
João Capucho
|
786194ec67
|
[glsl-in][New parser] WIP support for functions
|
2021-05-19 16:24:26 -04:00 |
|
João Capucho
|
ff8f15e034
|
[glsl-in] Start writting a parser without pomelo
|
2021-05-19 16:24:26 -04:00 |
|
Dzmitry Malyshau
|
b191c982ec
|
Remove alignment from struct IR
|
2021-05-17 09:32:52 -04:00 |
|
Dzmitry Malyshau
|
117d729ff8
|
[spv-in] allow non-strict check for capabilities
|
2021-04-25 18:32:34 -04:00 |
|
João Capucho
|
7135c051b4
|
[glsl-in] Support for function parameters with In
|
2021-04-23 22:15:16 -04:00 |
|
João Capucho
|
6247f2c822
|
[glsl-in] Load local variables
|
2021-04-23 22:15:16 -04:00 |
|
François
|
79bcfb1206
|
[glsl-in] add support for array variables (#731)
* [glsl-in] add support for array variables
* clippy
* more clippy
|
2021-04-19 13:37:25 -04:00 |
|
Jim Blandy
|
0910af2718
|
[wgsl-in] Implement WGSL interpolate syntax from gpuweb PR #1605.
Fixes: #670
|
2021-04-19 09:42:00 -04:00 |
|
Jim Blandy
|
99a9e1e78e
|
Change Binding::Location to a struct-style enum variant.
This commit makes no other changes. This is in preparation for adding a third
field, at which point tuple variants start to get obscure.
|
2021-04-19 09:42:00 -04:00 |
|
Dzmitry Malyshau
|
604e10e19b
|
Rewrite IR to have member offsets, full structure span and alignment
|
2021-04-08 23:15:03 -04:00 |
|
Dzmitry Malyshau
|
7326ba6ddb
|
New struct layout IR
|
2021-04-08 23:15:03 -04:00 |
|
Dzmitry Malyshau
|
372b2d314e
|
Adjust lints for Rust clippy 1.51
|
2021-03-25 12:34:25 -04:00 |
|
Dzmitry Malyshau
|
08eaad89db
|
Implement default layout in the IR and WGSL
|
2021-03-15 22:27:35 -04:00 |
|
Dzmitry Malyshau
|
ebcd815250
|
Update IR to have entry points with inputs/outputs
|
2021-03-13 23:26:19 -05:00 |
|
Dzmitry Malyshau
|
9e5cc4c9e4
|
Prevent matching on a reference once and for all
|
2021-03-12 11:35:09 -05:00 |
|
Dzmitry Malyshau
|
2045a4a7be
|
Use BOOL_WIDTH everywhere
|
2021-03-06 11:01:14 -05:00 |
|
Pelle Johnsen
|
51cbd4c112
|
[glsl-in] Add initial support for glslpp-rs (#513)
* [glsl-in] Add initial support for glslpp-rs
* [glsl-in] Add remaining Punct mappings
Fix some tests.
* [glsl-in] Add basic error handling for glslpp-rs
* [glsl-in] Fix clippy issues
* [glsl.in] Add pp-rs floats
* [glsl-in] Remove old lex and preprocessor
* [glsl-in] Improve lexer token code
* [glsl-in] Rename lex_pp > lex
Also LexerPP > Lexer
* [glsl-in] glslpp-rs review feedback
* [glsl-in] Use rev for pp-rs dep
* [glsl-in] Parse on lexer err
|
2021-02-24 12:07:09 -05:00 |
|
Dzmitry Malyshau
|
8a0382a89d
|
Move global use flags into FunctionInfo
|
2021-02-17 15:37:37 -05:00 |
|
Pelle Johnsen
|
408002815f
|
[glsl-in] Multi entry points - address comments
|
2021-02-17 10:05:40 -05:00 |
|
Pelle Johnsen
|
1861fca4ba
|
[glsl-in] Support multiple entrypoints
|
2021-02-17 10:05:40 -05:00 |
|
Joshua Groves
|
f42dc0c377
|
Fix some typos
|
2021-02-14 22:50:12 -05:00 |
|
Pelle Johnsen
|
c04c971907
|
[glsl-in] Fix StorageClass for texture and sampler
|
2021-02-11 10:33:21 -05:00 |
|
Dzmitry Malyshau
|
6f50ca6bee
|
Push constant support
|
2021-02-07 11:54:56 -05:00 |
|
João Capucho
|
993521965d
|
Add support for unary ops to glsl
|
2021-02-06 22:23:09 -05:00 |
|
João Capucho
|
e0005211a3
|
Fix the way equality is handled in glsl
|
2021-02-06 16:04:24 -05:00 |
|
João Capucho
|
68bbf00249
|
Added support for initalizers and constants
|
2021-02-02 11:17:34 -05:00 |
|
João Capucho
|
df3759ebff
|
Fix double constant lexing and lex uint constants
|
2021-01-31 21:20:59 -05:00 |
|
João Capucho
|
b55aa51f65
|
Add support for function declarations with arguments
Change ParseError to be public
Change globals to default to private instead of throwing error
|
2021-01-30 13:44:39 -05:00 |
|
 ![monocodus[bot]](/assets/img/avatar_default.png)
|
92f970a69d
|
Change ErrorKind::SemanticError to use Cow<'static, str> instead of &'static str (#356)
* Changed front::glsl::error::ErrorKind::Semantic to use Cow
* cargo fmt
* appeasing clippy
* Update src/front/glsl/functions.rs
Co-authored-by: monocodus[bot] <49363530+monocodus[bot]@users.noreply.github.com>
* Fixed more clippy errors
Co-authored-by: Dzmitry Malyshau <kvark@fastmail.com>
Co-authored-by: monocodus[bot] <49363530+monocodus[bot]@users.noreply.github.com>
|
2021-01-15 09:33:48 -05:00 |
|
Pelle Johnsen
|
6710f5954e
|
Fix clippy issues
|
2021-01-04 09:51:32 -05:00 |
|
Pelle Johnsen
|
511000d022
|
[glsl-in] Extract function logic out of parser
|
2020-12-23 14:54:53 -05:00 |
|
Dzmitry Malyshau
|
001336b457
|
Tidy up constants IR
|
2020-12-20 17:42:00 +01:00 |
|
Dzmitry Malyshau
|
b95346877a
|
Remove MemberOrigin in favor of spans
|
2020-12-18 16:11:12 -05:00 |
|
Dzmitry Malyshau
|
211bec44a1
|
Improve texture sampling IR, update WGSL parsing of it
|
2020-12-13 00:41:23 -05:00 |
|
Dzmitry Malyshau
|
dafca34877
|
Add block boolean to the structure types in IR
Also update WGSL syntax for structures.
Move the boids code into snapshots.
|
2020-12-12 12:46:24 -05:00 |
|
Dzmitry Malyshau
|
eeb479ae94
|
[wgsl] support const locals
|
2020-12-10 10:20:56 -05:00 |
|
Dzmitry Malyshau
|
f7ca7f2aff
|
Refactor Switch statement, implement on WGSL
|
2020-12-05 00:22:39 -05:00 |
|
Dzmitry Malyshau
|
5fe9429a63
|
Terminator processor, used in WGSL and GLSL frontends
|
2020-12-04 17:23:13 -05:00 |
|
Pelle Johnsen
|
0f98357223
|
[glsl-in] Skip gl_PerVertex
|
2020-11-20 09:54:01 +01:00 |
|
Pelle Johnsen
|
437b33d536
|
[glsl-in] use TypeInner::scalar_kind for casts (#279)
* [glsl-in] use TypeInner::scalar_kind for casts
* [glsl-in] Use .ok_or for casts
|
2020-11-16 11:57:34 -05:00 |
|
Pelle Johnsen
|
9041cd4b10
|
[glsl-in] Handle simple casts
|
2020-11-16 12:58:19 +01:00 |
|
Dzmitry Malyshau
|
8b56f3ef96
|
[ir] support function argument names (#270)
|
2020-11-11 21:34:37 +01:00 |
|
Pelle Johnsen
|
249e0bd4ac
|
[glsl-in] Make sure functions ends with return
|
2020-11-11 08:01:43 -05:00 |
|
Dzmitry Malyshau
|
41b3865e5b
|
Make variable initializers to be const
|
2020-11-04 16:38:55 -05:00 |
|
Kristoffer Søholm
|
bb5c9567b5
|
[glsl-in] Add xor, small refactor
|
2020-11-02 19:34:01 -05:00 |
|
Kristoffer Søholm
|
973cfbc5d3
|
[glsl-in] Add support for interface blocks
|
2020-11-02 19:34:01 -05:00 |
|
Pelle Johnsen
|
0101ea7319
|
[glsl-in] Handle assign ops: +=, *=, etc
|
2020-11-02 10:06:01 -05:00 |
|
Pelle Johnsen
|
602367c062
|
[glsl-in] Add initial texture handling
|
2020-11-01 14:52:11 -05:00 |
|