Dzmitry Malyshau
10867879d4
[spv-in] support projection sampling and sampling from arrays
2021-02-08 11:31:45 -05:00
Dzmitry Malyshau
680fda9e1b
[spv-out] fix initial ID 0 and 1 assignments
2021-02-08 00:20:37 -05:00
Joshua Groves
31be7099f2
Move snapshot inputs and outputs around
2021-02-07 18:16:26 -05:00
Dzmitry Malyshau
6f50ca6bee
Push constant support
2021-02-07 11:54:56 -05:00
Dzmitry Malyshau
11a3ed9837
WGSL support for void function calls
2021-02-06 10:42:54 -05:00
Dzmitry Malyshau
d949d58f7b
Statement for void function call
2021-02-06 10:42:54 -05:00
Dzmitry Malyshau
c496c05ba4
Makefile commands for native shader validation
2021-02-05 14:04:02 -05:00
Dzmitry Malyshau
e05baa2889
[spv] put NonWritable on buffer variable itself ( #405 )
2021-02-01 20:17:50 -05:00
Dzmitry Malyshau
5def021b6e
[spv] replace the internal type inferrence with the typifier ( #403 )
...
Also, fix the Typifier's handling of logical operations.
See https://github.com/gfx-rs/naga/pull/404 for v0.3 branch.
2021-02-01 09:33:28 -05:00
Dzmitry Malyshau
6138e4ddd3
[spv] fix block decoration on nested structs
2021-01-31 18:27:08 -05:00
Dzmitry Malyshau
cb36c642ea
[wgsl] refactor constants processing, add support for array sizes
2021-01-31 18:27:08 -05:00
Dzmitry Malyshau
7c6835bdbc
[spv] fix support for fixed-size array, refactor constant writes
2021-01-31 18:27:08 -05:00
Dzmitry Malyshau
1ec4c2b0d0
[spv] implement NonReadable/NonWritable decorations
2021-01-31 18:27:08 -05:00
Dzmitry Malyshau
15b629b750
[spv] put ColMajor on the struct member
2021-01-31 18:27:08 -05:00
Dzmitry Malyshau
0bbeec7d55
Add shadow snapshot shader
2021-01-30 15:14:38 +01:00
Dzmitry Malyshau
3b9f517446
[mtl] implement continuing, fix Greater op and scoping
2021-01-30 15:14:38 +01:00
Dzmitry Malyshau
162079c160
Enable collatz and boids testing for spv-out
2021-01-28 17:28:48 +01:00
Dzmitry Malyshau
ab2cf8b842
[wgsl] support vector type casts
2021-01-26 23:33:08 -05:00
Dzmitry Malyshau
ce15aa62fc
[spv] indexing values
2021-01-26 15:36:30 -05:00
Joshua Groves
d7225b4eb6
[glsl-out] Improve formatting of whitespace
2021-01-25 23:57:54 -05:00
Joshua Groves
58f38ba61d
[msl-out] Improve formatting of whitespace
2021-01-25 23:57:54 -05:00
Dzmitry Malyshau
a5184fba49
Check for the block decorator in the validator
2021-01-25 09:06:32 -05:00
Dzmitry Malyshau
98c18d71db
Switch to column major
2021-01-24 21:14:59 -05:00
Dzmitry Malyshau
0ea8a0a3c2
[wgsl] support unsigned literals
2021-01-23 10:03:25 -05:00
Dzmitry Malyshau
5b35b04546
Remove rosetta tests
2021-01-23 10:02:07 -05:00
Dzmitry Malyshau
c758399354
Add a collatz snapshot test
2021-01-22 08:58:02 -05:00
Dzmitry Malyshau
da51f29d42
[spv] emit proper member layout decorations ( #360 )
2021-01-22 08:54:28 -05:00
Jay Oster
3bf7f41068
WGSL // comments
...
- Update parser to match the latest spec: https://github.com/gpuweb/gpuweb/pull/1326
2021-01-06 09:19:46 -05:00
Capucho
3f7ee8cd6e
Generate locations with fixed naming scheme for linking
2020-12-22 13:02:22 -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
77657b4c76
Add skybox example snapshots
2020-12-13 10:20:57 -05:00
Dzmitry Malyshau
018dfd6d29
[msl] fix metal namespacing, matrix construction and indexing
2020-12-13 10:20:57 -05:00
Dzmitry Malyshau
211bec44a1
Improve texture sampling IR, update WGSL parsing of it
2020-12-13 00:41:23 -05:00
Dzmitry Malyshau
087b5555a6
Add tests for GLSL parsing
2020-12-13 00:41:23 -05:00
Dzmitry Malyshau
0efd6e75d7
[wgsl] update texture definitions and storage access
...
Add more tests, enhance the snapshot testing.
2020-12-12 12:46:24 -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
b7744a1ec5
[wgsl] function lookup, improve error reporting
2020-12-10 10:20:56 -05:00
Joshua Groves
d71ebe2881
Add snapshots for function.wgsl
2020-12-10 00:24:07 -05:00
Joshua Groves
51cdb0403a
Add snapshots for simple.wgsl
2020-12-10 00:24:07 -05:00
Joshua Groves
9a625a570e
Add insta prototype
2020-12-10 00:24:07 -05:00
Dzmitry Malyshau
66d994566c
[spv] force treating the built-in scalar types as unsigned
2020-12-08 22:55:21 -05:00
Dzmitry Malyshau
5786aac9c4
[glsl] enable conversion testing for quad and boids
2020-12-08 09:25:59 -05:00
Dzmitry Malyshau
148fac0601
[spv] enable quad conversion test, refactor binary operations
2020-12-08 09:25:59 -05:00
Dzmitry Malyshau
31be5402bd
[spv] refactor the capability checks
2020-12-08 09:25:59 -05:00
Dzmitry Malyshau
d190c6441f
Add spv::write_vec helper.
2020-12-04 10:40:13 -05:00
Dzmitry Malyshau
529225ce4c
Option to dump spirv flow graphs ( #249 )
2020-10-30 16:44:59 -04:00
Dzmitry Malyshau
587dc01a2c
[msl] refactor the options, add override stages
2020-10-28 00:30:22 -04:00
Pelle Johnsen
78c9e45182
[glsl-in] Add initial pre-processor ( #238 )
...
* [glsl-in] Add initial pre-processor
* [glsl-in] Tweak preprocessor after review
- Add IfState struct
- Use FastHashMap to pre-defines
- Use ok-or() for some errors
* [glsl-in] Remove Option in defines arg
2020-10-15 13:38:02 -04:00
Dzmitry Malyshau
541d1dcb8b
Fix convert_phong_lighting test feature checks
2020-09-28 01:10:57 -04:00
Dzmitry Malyshau
14feb9ac01
Validation of global variables and entry points
2020-09-17 16:12:56 -04:00
Dzmitry Malyshau
081b90f117
Consolidate rosetta tests
2020-09-17 10:16:32 -04:00
Dzmitry Malyshau
2ebaadaf0c
Refactor entry point IR
2020-09-17 10:08:49 -04:00
Dzmitry Malyshau
d6cc17f051
Refactor feature names
2020-09-15 07:51:45 -04:00
Dzmitry Malyshau
089d0dd4f8
Minor fixes in feature checks ( #194 )
2020-09-13 21:03:00 -04:00
Dzmitry Malyshau
b278e10ea7
[spirv-in] make pointers totally transparent ( #187 )
2020-09-11 12:19:55 -04:00
Pelle Johnsen
2ea0310b63
[glsl] Promote glsl-new to glsl ( #184 )
...
* [glsl] Promote glsl-new to glsl
* [glsl-in] rename feature glsl > glsl-in
2020-09-10 01:11:52 -04:00
Matus Talcik
b67739034e
Implement Execution Modes ( #169 )
...
Add documentation, make clippy happy
Compilation errors
Add some more docs
Few more compilation errors
Changes based on the review
glsl-new parser fix
Set default local size to (0, 0, 0)
final cleanup
Last design
New design
2020-08-31 14:34:38 -04:00
Dzmitry Malyshau
1b17030d05
Split wgsl into sub-modules, and gate by a feature ( #165 )
2020-08-27 23:30:53 -04:00
Kristoffer Søholm
6c062087fa
Initial GLSL constant evaluation implementation ( #94 )
...
Adds constant evaluation for addition, and uses it for globals and array
specifiers.
2020-07-09 20:52:13 -04:00
Dzmitry Malyshau
4a769c10b5
[spv] remove the pointer indirection to variables
2020-07-05 09:33:07 -04:00
Dzmitry Malyshau
e0a1e80fb5
Remove spirv-headers use from IR, make it optional
2020-06-25 00:37:33 -04:00
Dzmitry Malyshau
6eecea5dad
First bits of IR validation
2020-06-24 23:17:52 -04:00
Gabriel Majeri
84615eead3
Add support for return value to SPIR-V backend ( #79 )
...
* Add test for `glsl_phong_lighting`
* Implement `ReturnValue` op for SPIR-V backend
2020-06-22 16:11:40 +02:00
João Capucho
f94b486d8b
Run cargo fmt and enable monocodus ( #63 )
2020-06-09 14:49:12 -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
df855bc2ff
Makefile and RON converter parameters
2020-03-19 09:44:14 -04:00
Dzmitry Malyshau
0de28d1656
[msl] operators, array access, and built-in calls
2020-03-15 23:59:49 -04:00
Dzmitry Malyshau
c467693253
Add quad -> MSL testing
2020-03-15 12:10:19 -04:00
Dzmitry Malyshau
1957b09c4d
Add WGSL parsing tests
2020-03-15 11:43:08 -04:00