Commit Graph
110 Commits
Author SHA1 Message Date
Anthony Cowley d0ef4e9dbe [spv-out] support select expressions 2021-02-13 22:56:43 -05:00
Dzmitry Malyshau 8183f4ff6f [spv-out] annotate function and constant names 2021-02-13 19:37:54 -05:00
Dzmitry Malyshau 89f62bc584 [spv-out] make instruction constructions to be methods 2021-02-13 12:33:04 -05:00
Dzmitry Malyshau f3cab651bb [spv-out] support Switch statements 2021-02-12 10:17:27 -05:00
Dzmitry Malyshau b3d80de9e1 [spv-out] fix the clippy warning about Result type 2021-02-11 11:24:06 -05:00
Dzmitry Malyshau 680fda9e1b [spv-out] fix initial ID 0 and 1 assignments 2021-02-08 00:20:37 -05:00
Dzmitry Malyshau d949d58f7b Statement for void function call 2021-02-06 10:42:54 -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
Lain-dono 6ff725d89a [spv-out] Add missing math functions (#401)
* [spv-out] Add missing builtins

* [spv-out] remove a non-existent integer version of mix
2021-02-01 00:28:17 -05:00
Lain-dono 208346fad6 [spv-out] implement discard 2021-01-31 23:39:45 -05:00
Dzmitry Malyshau 6138e4ddd3 [spv] fix block decoration on nested structs 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
Baptiste Manson 0c725c0837 added function pow from spirv backend 2021-01-29 17:38:41 -05:00
Dzmitry Malyshau 0c5db60d69 [spv] fix depth sampler type 2021-01-29 21:05:15 +01:00
Dzmitry Malyshau 4a13ce022b [spv] debug labels for types, local variables, and struct members 2021-01-28 17:28:48 +01:00
Dzmitry Malyshau 089a5597c6 [spv] implement the rest of binary operators 2021-01-28 17:28:48 +01:00
Dzmitry Malyshau 20b9aa6835 Address clippy issues 2021-01-28 17:28:48 +01:00
Dzmitry Malyshau 162079c160 Enable collatz and boids testing for spv-out 2021-01-28 17:28:48 +01:00
Dzmitry Malyshau 194a67edda [spv] separate block ID creation from contents writing 2021-01-28 17:28:48 +01:00
Dzmitry Malyshau 7d3342f2c9 [spv] Implement math comparison functions 2021-01-28 17:28:48 +01:00
Dzmitry Malyshau b9cc890ca6 [spv] implement loops 2021-01-28 17:28:48 +01:00
Dzmitry Malyshau 16521a94d0 [spv] implement trigonometry math functions 2021-01-28 17:28:48 +01:00
Dzmitry Malyshau 3177df2188 [spv] refactor the return statement handling 2021-01-28 17:28:48 +01:00
Dzmitry Malyshau e3328773d0 [spv] Refactor struct Block, implement Statement::Block 2021-01-28 17:28:48 +01:00
Timo de Kort 88f118a07d Working prototype 2021-01-28 17:28:48 +01:00
Dzmitry Malyshau 61fd868a22 [spv] implement full image sampling 2021-01-27 11:24:27 -05:00
Dzmitry Malyshau ce15aa62fc [spv] indexing values 2021-01-26 15:36:30 -05:00
Dzmitry Malyshau 98c18d71db Switch to column major 2021-01-24 21:14:59 -05:00
Dzmitry Malyshau 5b35b04546 Remove rosetta tests 2021-01-23 10:02:07 -05:00
Timo de Kort 6ffd68d6a2 [spv-out] Add comparison operators 2021-01-22 22:28:21 -05:00
Dzmitry Malyshau da51f29d42 [spv] emit proper member layout decorations (#360) 2021-01-22 08:54:28 -05:00
Dzmitry Malyshau 6f5ff27701 Sample mask support 2021-01-15 01:08:15 -05:00
Dzmitry Malyshau 4e5b39f452 [spv] indexing arrays 2021-01-08 23:28:08 -05:00
Pelle Johnsen e062096a6a [spv-out] Handle import id for GLSL.std.450 2021-01-04 09:51:32 -05:00
Pelle Johnsen 7d9054f2c1 [glsl-in] Implement more MathFunctions 2020-12-23 14:54:53 -05:00
Pelle Johnsen 9a51d82c39 [glsl-in] Implement ceil
Related to #330
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 300aa61de0 [spv] improves division and modulo operators 2020-12-19 15:41:45 +01:00
Dzmitry Malyshau 583f218c9d Fix SPIR-V global binding check, add GLES 320 support (#333) 2020-12-15 09:31:08 -05:00
Dzmitry Malyshau 933ca3863b [spv] simplify the composing expression 2020-12-13 00:45:55 -05:00
Dzmitry Malyshau 96dcf8bd05 [spv] make the storage classes consistent across the expressions 2020-12-13 00:45:55 -05:00
Dzmitry Malyshau 2781705bef [spv] enforce the load/store semantics consistently 2020-12-13 00:45:55 -05:00
Dzmitry Malyshau a6240b4988 [spv] support transpose and access index on matrices 2020-12-13 00:45:55 -05:00
Dzmitry Malyshau 2d1006835a Fix WGSL variable storage classes, spv-out interface 2020-12-13 00:41:23 -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 edf5d857b1 Add workgroup id and size builtins 2020-12-10 09:38:56 -03:30