Commit Graph
255 Commits
Author SHA1 Message Date
Gordon-F 6736bcefa6 [glsl-out] Explicitly set location bindings 2021-03-17 09:40:06 -04:00
Dzmitry Malyshau 665ac49a01 Show expression uniformity in the Dot backend 2021-03-17 01:03:00 -04:00
Dzmitry Malyshau e715bda507 [msl-out] implement composing arrays and structs 2021-03-17 01:03:00 -04:00
Dzmitry Malyshau c5fe1d53c7 [dot] function calls 2021-03-16 22:08:06 -04:00
Dzmitry Malyshau 08eaad89db Implement default layout in the IR and WGSL 2021-03-15 22:27:35 -04:00
Dzmitry Malyshau 0945889dd7 [msl] filter out entry points based on the bindings 2021-03-15 10:31:45 -04:00
Lain-dono 4fb82bd955 [spv-out] implement derivatives 2021-03-14 20:34:59 -04:00
Dzmitry Malyshau 32a11752af Rename FragCoord builtin into Position 2021-03-13 23:26:19 -05:00
Dzmitry Malyshau ebcd815250 Update IR to have entry points with inputs/outputs 2021-03-13 23:26:19 -05:00
Dzmitry Malyshau 58a4e330dc [glsl-out] fix cached expressions 2021-03-13 11:52:23 -05:00
Dzmitry Malyshau 9e5cc4c9e4 Prevent matching on a reference once and for all 2021-03-12 11:35:09 -05:00
Dzmitry Malyshau dd273e254a Distinguish between expression uniformity and function uniformity 2021-03-11 10:14:47 -05:00
Gordon-F 74d1fdbf2a [glsl-out] Return reflection info to users 2021-03-10 17:10:58 -05:00
Igor Shaposhnik 25fe522423 [glsl-out] Properly write array type 2021-03-10 15:17:07 -05:00
Igor Shaposhnik f586d3e240 [glsl-out] Workaround lod array shadow as textureGrad 2021-03-09 15:08:08 -05:00
Dzmitry Malyshau 13d7a353e0 Switch entry points from map to a vec 2021-03-07 12:11:49 -05:00
Dzmitry Malyshau dd823a4b84 Enforce pointer semantics at the type level. 2021-03-06 11:01:14 -05:00
Igor Shaposhnik 7bc7288828 [glsl-out] Properly write structure type in statement 2021-03-05 23:10:16 -05:00
Igor Shaposhnik d1c47d1705 [glsl-out] Set precision for image type 2021-03-05 23:10:16 -05:00
Igor Shaposhnik 50e5904add [glsl-out] Fix statement indentation 2021-03-04 10:03:39 -05:00
Dzmitry Malyshau 3fcc0759ed GraphViz backend 2021-03-03 21:20:12 -05:00
Dzmitry Malyshau 89e37d6e90 Explicitly emit expressions by Statement::Emit 2021-03-02 21:50:06 -05:00
Igor Shaposhnik 230ec601ed [glsl-out] Fix array writing 2021-03-02 21:48:23 -05:00
Igor Shaposhnik 6e37f336bd [glsl-out] Set workgroup_size for compute shaders 2021-03-02 14:26:01 -05:00
Igor Shaposhnik 04b1f44396 [glsl-out] Fix atan2 math function 2021-03-01 10:42:09 -05:00
Dzmitry Malyshau 7c2f4eac2e [spv] fix unsigned selector and bitcast 2021-02-26 09:17:32 -05:00
Dzmitry Malyshau afbcf05006 Move the convert from an example to a binary target 2021-02-25 10:05:21 -05:00
Dzmitry Malyshau 1dc955551b [spv-out] use image_fetch where appropriate (#522) 2021-02-25 09:57:35 -05:00
Dzmitry Malyshau 0cefc1c46c Remove mutation from the Call expression 2021-02-22 23:37:26 -05:00
Dzmitry Malyshau 694a00afcb [spv-out] optimize if/else branching 2021-02-22 10:11:36 -05:00
Dzmitry Malyshau 26e6c2bdac Use source attribute of errors 2021-02-19 22:10:25 -05:00
Dzmitry Malyshau 99c1add358 [msl] fake bindings 2021-02-19 19:20:21 -05:00
Dzmitry Malyshau 0e3f745fb2 [msl] derive thiserror 2021-02-19 16:56:45 -05:00
Dzmitry Malyshau db0a8875d9 TypifyError with the expression handle 2021-02-19 16:56:45 -05:00
João Capucho 19e7f456c4 Remove the call graph processor
Uses the GlobalUse in glsl-out to check for function availability
2021-02-18 11:43:18 -05:00
Dzmitry Malyshau 8a0382a89d Move global use flags into FunctionInfo 2021-02-17 15:37:37 -05:00
Dzmitry Malyshau 847d127ec8 Optimize Interface with a bitmask to avoid re-visiting expressions 2021-02-16 09:08:05 -05:00
Dzmitry Malyshau e37268e60c [msl] fix support for private globals 2021-02-16 09:08:05 -05:00
Dzmitry Malyshau 6d0c608626 [glsl-out] use existing Analysis instead of implementing Visitor 2021-02-15 11:13:11 -05:00
Joshua Groves f42dc0c377 Fix some typos 2021-02-14 22:50:12 -05:00
Dzmitry Malyshau ad423124c0 Support constants in the naming processor 2021-02-14 20:43:50 -05:00
Dzmitry Malyshau 61d711b58f Remove the Header from IR 2021-02-14 20:23:31 -05:00
Systemcluster 7a124550d4 [glsl-in] support inverse function 2021-02-14 12:34:26 -05:00
Dzmitry Malyshau 18853ab149 Add warnings for trivial casts and clean them up in the code 2021-02-14 11:55:35 -05:00
Dzmitry Malyshau 8e96085caf [spv-in] support image load/store ops 2021-02-14 11:55:35 -05:00
Dzmitry Malyshau de5bd77279 ImageStore statement in IR 2021-02-14 11:55:35 -05:00
Dzmitry Malyshau c1fc5d6424 [msl] re-use expression results based on the analysis 2021-02-14 01:19:15 -05:00
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