Commit graph

76 commits

Author SHA1 Message Date
3808463e55 Move pipelineState into pixelPipeline
Move configuration to its own method
2018-10-11 11:26:09 -07:00
80d4e6f043 Rearrange render pass encoding so that presentation and commit() are outside the encoder if block 2018-10-11 11:15:10 -07:00
81e90f3349 TODO: Idk what this does 2018-10-11 10:58:01 -07:00
48d3f380fc Add passthroughFragmentShader
Just sets every input to white.
2018-10-11 10:53:52 -07:00
1d72ead26e Get rid of a bunch of unused code 2018-10-10 16:46:12 -07:00
2fa9b838f7 Four color gradients! Standard APIs! Wowwwww 2018-10-09 17:44:07 -07:00
141eee69ee Update the shaders
Translate by (-x, -y) first, then by (x, y) to get it back to normal.
2018-10-09 16:58:11 -07:00
1b8fc1feb7 Allow a slider to set the colorRotation in radians 2018-10-09 16:51:35 -07:00
d3190dd7e7 Add color rotation matrix to Parameters 2018-10-09 11:57:35 -07:00
8f1e1335bd Use the simd types where I can 2018-10-07 19:32:29 -07:00
edce32e021 Add vertical gradient 2018-10-05 20:27:47 -07:00
28efe003bf Remove Kit files 2018-10-05 14:02:33 -07:00
a445e608b6 Remove the Kit
App still builds
2018-10-05 13:53:00 -07:00
39001b0ffa Disable Swift 3 @objc inference 2018-10-05 13:50:21 -07:00
5caa763a99 Fix compiler errors after update to Swift 4.2 2018-10-05 13:45:37 -07:00
9f5b7c7cb5 Convert to Swift 4.2 2018-10-05 13:38:32 -07:00
a8204173fa [kit] Place labels before controls 2017-08-25 11:24:10 -07:00
bc1cff37cc [kit] Remove logging that was slowing things down 2017-08-25 11:21:07 -07:00
15ff6b90fb [kit] Remove dead references to Slider enum (I got rid of it) 2017-08-25 11:20:56 -07:00
1bd2ba0a71 [kit] Use #pragma mark in shader file
Still need to do some reorganization in here
2017-08-25 11:19:35 -07:00
0b752984dc [kit] Pass target and feather values into the shaders 2017-08-25 11:19:09 -07:00
6c06aadd37 [kit] Add target and feather properties to the Parameters struct 2017-08-24 18:35:16 -07:00
d730c244a5 [kit] Return a (0,0) point if the radius is too big for the bounds 2017-08-24 18:01:30 -07:00
bed81b2da1 [kit] Shuffle around some logging 2017-08-24 17:59:47 -07:00
a07bced808 [kit] Create Metal library from Kit bundle, rather than main bundle 2017-08-24 17:59:18 -07:00
b028a9ed2e [kit] Show close button in prefs window if needed 2017-08-24 17:57:50 -07:00
6b663f92e8 [kit] Shuffle things around so delegate doesn't have to be given in init()
Classes that use the Renderer might not be ready to assign themselves as delegate when the Renderer is initialized
2017-08-18 09:03:01 -07:00
43caa7d844 [kit] Make PrefsVC public 2017-08-18 09:01:42 -07:00
c226d7e72e [app,kit] Move Renderer and shaders to the Kit 2017-08-16 22:07:30 -07:00
4756f863fe [app,kit] Remove PreferencesWindowController 2017-08-16 22:01:33 -07:00
76ad824e73 [kit] Update colorStyle menu on view appear 2017-08-16 22:01:00 -07:00
88c97d4bf5 [kit] Pass colorStyle through too! 2017-08-16 21:56:20 -07:00
b73e4c7af1 Revert "[kit] Attempt to make the color wells equal width"
This reverts commit 4f58d088c2.
2017-08-16 21:36:33 -07:00
4f58d088c2 [kit] Attempt to make the color wells equal width 2017-08-16 21:36:31 -07:00
6a0ca3799f [kit] Work on the dropdown style menu 2017-08-16 21:35:48 -07:00
e89c858ab7 Revert "[kit] Dynamically build the style dropdown menu"
This reverts commit f6e7217b2c.
2017-08-16 21:15:03 -07:00
f6e7217b2c [kit] Dynamically build the style dropdown menu 2017-08-16 21:12:12 -07:00
587e616d76 [kit] Implement the notification infrastructure 2017-08-16 21:12:00 -07:00
0aa82ce59e [kit] Add extensions for dealing with Float4 <-> NSColor conversions 2017-08-16 21:10:26 -07:00
72fc00d1ca [kit] Add an extension to UserDefaults object to mediate reading/writing values we care about 2017-08-16 20:36:34 -07:00
73a4bec59c [kit] Add Array extension to create one from a Float4 2017-08-16 20:35:20 -07:00
5fdd624f21 [kit] Implement a basic preferences window controller 2017-08-15 18:06:53 -07:00
ec6d6320db [kit] Add PreferencesWindowController 2017-08-15 18:04:51 -07:00
e7e168ba79 [kit] Set target on menu items -- no action yet 2017-08-13 09:44:04 -07:00
3accaef16e [kit] Get color changes to post a notification including relevant color data 2017-08-13 09:43:09 -07:00
2ab34d99ea [kit] WIP: Getting preference window to work
Rudimentary loading of colors from user defaults
2017-08-12 10:53:13 -07:00
99fe2147ad [app] Copy the rawValue of the colorStyle enum into the buffer 2017-08-09 08:52:05 -07:00
a7a1cc244b [kit] Fix the build fallout of the previous commit
Oops.
2017-08-08 12:37:35 -07:00
aa7b1ffe9d [kit] Make a bunch of data structures public 2017-08-08 12:36:33 -07:00
c84681559e [app,fw] Pass color information into the shader 2017-08-08 11:52:48 -07:00