Dzmitry Malyshau
7e809c605a
Remove validation error lifetime
2020-09-28 01:10:57 -04:00
Dzmitry Malyshau
0651eb8fab
Complete expression/statement support in MSL, refactor conversion methods in WGSL, and remove Statement::Empty
2020-09-19 16:16:17 -04:00
João Capucho
0aae8ae6f8
glsl-out: More glsl versions ( #191 )
...
* Added support for glsl core version up to 400
* Added 330 to the list supported versions
* Added links to all extensions and fixed a extension being wrongfully activated
* Cleanup and check for image formats
* Removed useless extension and location on layout
* Added support for external functions and fixed global names
* Typefier allow Scalars in distance and length
* Addressed comments
* Fixed extension appearing after body
* Fixed entry point not being generated
2020-09-18 17:01:05 -04:00
Dzmitry Malyshau
d25ab1b1e8
Refactor image sampling arguments, add textureLoad support to WGSL
2020-09-18 10:53:26 -04:00
Dzmitry Malyshau
aa7005fdf3
[ir] Move scalar kind into the Sampled image class variant
2020-09-18 10:01:56 -04:00
Dzmitry Malyshau
7aff39784b
[wgsl] texture operations
2020-09-18 10:01:56 -04:00
Dzmitry Malyshau
14feb9ac01
Validation of global variables and entry points
2020-09-17 16:12:56 -04:00
Dzmitry Malyshau
2ebaadaf0c
Refactor entry point IR
2020-09-17 10:08:49 -04:00
Dzmitry Malyshau
74c4a3ce18
Add ArrayLength expression
2020-09-16 09:29:26 -04:00
Dzmitry Malyshau
a561c7cacb
validator: try resolving the types
2020-09-15 07:51:45 -04:00
Dzmitry Malyshau
fb2c60b31c
msl: use typifier in the backend
2020-09-15 07:51:45 -04:00
Dzmitry Malyshau
f04a07c86c
proc: make typifier work with gaps in the type graph
2020-09-15 07:51:45 -04:00
João Capucho
0129aa2ca6
[glsl-out]: combined image sampler ( #177 )
...
* Added generation of the texture mappings to the glsl backend
* Added a temporary workaround for the spirv shaders
Fixed some parts that were using vulkan glsl
* Made texture mapping not require a sampler
* Used interface to build the texture map
* Made global names mandatory except for sampler ones
* Addressed more comments
* Removed the temp fix for the spirv frontend
* Addressed the comments
2020-09-10 14:14:03 -04:00
Dzmitry Malyshau
e64f28375e
ir: bitcast expression
2020-09-10 13:19:17 -04:00
João Capucho
e1e116537e
Extended Interface to be used in more places ( #183 )
...
* Extended Interface to be used in more places
* Applied comments and added tests
* Removed the statement visitor
* Fixed remaining comments
2020-09-09 17:22:13 -04:00
Dzmitry Malyshau
dc442343d6
Make TypeInner to be non-clonable
2020-08-28 19:37:39 -04:00
Dzmitry Malyshau
d370686351
proc: support parameter types in Typifier
2020-08-28 19:37:39 -04:00
Dzmitry Malyshau
462c82fb71
As expressions
2020-08-27 11:49:38 -04:00
Dzmitry Malyshau
4a61705201
Add matrix transposition expression
2020-08-27 11:49:38 -04:00
Dzmitry Malyshau
4797773152
Image IR refactor ( #153 )
2020-08-26 13:26:51 -04:00
Gabriel Majeri
ccab9f7c38
Implement Error for wgsl::ParseError ( #113 )
2020-07-21 14:52:18 -04:00
Dzmitry Malyshau
94802078c3
Derive Error for validation errors ( #112 )
2020-07-21 11:36:05 -04:00
Dzmitry Malyshau
39998a4c38
Differenciate between local and external function calls at IR level
2020-07-06 14:10:38 -04:00
Dzmitry Malyshau
33fe3a3dba
Struct member origin enum
2020-07-04 11:10:37 -04:00
Dzmitry Malyshau
5d6406b018
Add DepthImage IR type.
...
Fix all the usage of Bytes type to really mean bytes.
Have logic in the SPIR-V front-end to detect the comparison properties of samplers and images.
2020-07-04 11:10:37 -04:00
Kristoffer Søholm
1f5008f673
Refactor error handling in GLSL frontend
2020-06-30 18:56:58 -04:00
Gabriel Majeri
c2a220840f
Document almost everything
2020-06-29 12:25:48 -04:00
Dzmitry Malyshau
6eecea5dad
First bits of IR validation
2020-06-24 23:17:52 -04:00
João Capucho
f94b486d8b
Run cargo fmt and enable monocodus ( #63 )
2020-06-09 14:49:12 -04:00
João Capucho
b91b9ca987
Glsl frontend ( #50 )
...
* Basic glsl support
* Miscellaneous fixes and vertex shader works
* Added rudimentary texture and sampler support
* Basic preprocessor
* Added preprocessor if macros
* Pass tests and handle floats correctly
* Fix preprocessor if wrong precedence ordering when using macros
Refractor for the glsl parser
Partial primary expression parser
* Fix all clippy errors
* Cleanup
* Rollback formatting changes in lib.rs
2020-06-09 13:43:16 -04:00
Paul Kernfeld and Paul Kernfeld
b108a50089
Check constant types ( #54 )
...
* Check constant types
A baby step towards #43
* Move tp src/proc/typifier, remove unneeded return
* Don't do pub(crate)
* Don't use crate::proc::UnexpectedConstantTypeError
Co-authored-by: Paul Kernfeld <paulkernfeld@gmail.com >
2020-05-22 12:30:30 -04:00
Dzmitry Malyshau
3ea6ca428f
Move the global usage into the IR function
2020-03-20 16:23:35 -04:00
Dzmitry Malyshau
55fab04353
Refactor the interface processor, many improvements in global variables handling in MSL
2020-03-19 22:36:26 -04:00
Dzmitry Malyshau
80a9254dbe
Interface processor
2020-03-19 18:04:58 -04:00
Dzmitry Malyshau
4a72abb142
Remove Mul expression type
2020-03-15 12:10:19 -04:00
Dzmitry Malyshau
a768af6011
Implement a fair bit of typifier logic, resolve access ids in WGSL
2020-03-15 10:59:12 -04:00
Dzmitry Malyshau
3c5a12412c
Typifier lookups into constants, variables, and structs
2020-03-15 10:59:12 -04:00
Dzmitry Malyshau
6ba942330a
Typifier skeleton
2020-03-15 10:59:12 -04:00