Commit Graph

  • 1a247e482a breaking out the shader mitchellhansen 2019-09-24 23:22:15 -07:00
  • 5a888a4163 hitting this damn shader module again. Very unergonomic interface with the fact that the entry point doesn't just own the shadermodule mitchellhansen 2019-09-24 22:39:24 -07:00
  • 3db8eaf006 refactoring the shader container. To Trait or not to Trait? Probably Trait mitchellhansen 2019-09-22 01:37:58 -07:00
  • 34c23eebc0 moved to rust style file tree mitchellhansen 2019-09-21 23:59:43 -07:00
  • fa2c9397bf I need to impl a private module so I can have a private get_paths mitchellhansen 2019-09-21 23:33:56 -07:00
  • 5462566396 in a stroke of genius (total luck) I have gotten a stencil buffer which culls pixels mitchellhansen 2019-09-18 20:21:59 -07:00
  • 54fff9a4e9 stencil buffer is added, but not working for invert mitchellhansen 2019-09-18 18:53:45 -07:00
  • 038eedeb97 brought back to a compiling state mitchellhansen 2019-09-17 20:28:16 -07:00
  • 89fc974d3c some mishmash brainstorming on adding text rendering. Going to use inverted stencil buffer + glyph path method mitchellhansen 2019-09-17 20:10:16 -07:00
  • b13a834475 fiddling with text rendering mitchellhansen 2019-09-11 23:39:07 -07:00
  • df2543bc8d fixed depth buffering for images mitchellhansen 2019-09-11 22:39:25 -07:00
  • f6adbd80d1 depth buffer compiles and switched to 3d vertices mitchellhansen 2019-09-11 22:04:43 -07:00
  • 73456dc58d multi texturing works mitchellhansen 2019-09-10 22:47:19 -07:00
  • 5f2092ef21 fixed 0,1 coord issue. Going to test multiple vertex buffers now mitchellhansen 2019-09-10 22:04:13 -07:00
  • 9043c2cd3c removed the colored vertex and combined into one. Half fixed texturing. Fully fixed images and compute swapping mitchellhansen 2019-09-10 21:13:48 -07:00
  • e8507f9dfc Fixed a particularly nasty typo bug. Added more moving sprites. Will need to examine order of draw commands. Need to fix the size/8 for misaligned data. mitchellhansen 2019-09-09 23:27:49 -07:00
  • 709a617cd1 somehow lost texturing need to look back mitchellhansen 2019-09-09 22:34:46 -07:00
  • bf3abfe29d more documentation. Image base impl mitchellhansen 2019-09-09 21:52:52 -07:00
  • e8ddb67b9e Merge pull request #1 from MitchellHansen/debugging Mitchell 2019-09-09 20:58:55 -07:00
  • 26b73c48a8 working on docs mitchellhansen 2019-09-09 20:57:15 -07:00
  • 314fa3e4af Workgroup sizes of 8 along with reducing the amount of work groups improves performance 20x mitchellhansen 2019-09-06 00:21:50 -07:00
  • 711e678969 That's it. Fifo present mode halts until the next time the screen is refreshed. Mailbox will replace the lined up image if the refresh period has not been reached mitchellhansen 2019-09-05 23:26:25 -07:00
  • 9135d9ec84 minimal example of 15ms lag mitchellhansen 2019-09-05 21:40:56 -07:00
  • 3f14555c99 texturing works, next will be images mitchellhansen 2019-08-30 00:50:45 -07:00
  • a2de3557f0 removed old shader_kernel mitchellhansen 2019-08-29 22:45:05 -07:00
  • ebf2cb5322 running. Rust is absolutley amazing. I haven't run this in ~20 commits, yet it only took a few unwrap() fixes and it's back working mitchellhansen 2019-08-29 22:41:19 -07:00
  • 0357296771 more refactoring, compiles. mitchellhansen 2019-08-29 22:22:10 -07:00
  • 1737319fc5 lots of refactoring mitchellhansen 2019-08-29 21:40:24 -07:00
  • 878b37c3e0 cleaned loop. Compiles. Refactoring Canvas next mitchellhansen 2019-08-28 23:17:04 -07:00
  • 66d11e22c0 just doing a naive layered compute for meow mitchellhansen 2019-08-28 22:55:44 -07:00
  • 885e19fb64 starting to hook up the compute frame translation. mitchellhansen 2019-08-28 21:48:25 -07:00
  • a3607ebc7d Most of the compute side is mocked up and compiling. mitchellhansen 2019-08-28 00:35:36 -07:00
  • 9b8d5cd828 have the api of the compu somewhat figured out. Need to weigh my options on texture, buffer, and image handles and how I'm going to get them from the vkprocessor mitchellhansen 2019-08-27 21:48:21 -07:00
  • e0e9218d6e brainstorming mitchellhansen 2019-08-27 02:50:02 -07:00
  • c39994a7ae more brainstorming on how spriting and computing is going to work mitchellhansen 2019-08-27 01:46:25 -07:00
  • be20f3ae2a sprites are working, but the implementation is pretty bad mitchellhansen 2019-08-11 21:30:44 -07:00
  • e351e36c92 pulled out the draw call. forgot to allocate buffers mitchellhansen 2019-08-11 21:03:28 -07:00
  • 0be20eb959 removed the extra stuff from the kernels. Having some issues with the layouts not agreeing with the set size... mitchellhansen 2019-08-11 17:23:58 -07:00
  • dfd4cbb6a2 Moved the framebuffer gen to the canvas. Cleaned up a lot of unused imports mitchellhansen 2019-08-11 16:37:14 -07:00
  • 8cd5e3e562 Finally appeased the compiler. Need to do some real cleaning up on the relationship between canvas and vk processor mitchellhansen 2019-08-11 15:56:24 -07:00
  • f06adc9a55 ugga ugga. Lifetime problems with the Canvas mitchellhansen 2019-08-08 23:14:34 -07:00
  • a7e79668eb very close to the skeleton of the canvas written. Still haven't tested it but it's looking good. Need to figure out how I'm goign to iterate shader_kernels without borrowing from self mitchellhansen 2019-08-08 00:34:37 -07:00
  • 2207c41956 Brainstorming the design. mitchellhansen 2019-08-07 23:36:52 -07:00
  • c5b3c29ad4 in the midst of a very messy refactor of the way i build the command buffer mitchellhansen 2019-08-06 23:23:36 -07:00
  • 56455774bc cleaning up the shader hoohaw mitchellhansen 2019-08-05 22:40:28 -07:00
  • bb1f782168 pulled swapchain out of shaderkernels mitchellhansen 2019-08-05 22:09:21 -07:00
  • 28878dc345 fixed minor regression, cleaned up source tree mitchellhansen 2019-08-05 18:26:43 -07:00
  • 1f33d96ae5 Added sprite and better vertex format. works, but now I lost texturing mitchellhansen 2019-08-05 18:08:58 -07:00
  • cce893a0c8 saving working on key entry. going to do pallette now mitchellhansen 2019-08-04 19:48:34 -07:00
  • a91e071909 refactored the compute image mitchellhansen 2019-08-03 23:02:26 -07:00
  • a8679459ea I have kinda given up trying to wrangle this descriptorsetbuilder. Going to read more on how sprites are best handled in regards to their textures mitchellhansen 2019-07-31 22:39:45 -07:00
  • 9951afd5a5 . mitchellhansen 2019-07-28 00:42:26 -07:00
  • 982e2ad517 initial impl of get image set mitchellhansen 2019-07-28 00:29:52 -07:00
  • 77ccd415d0 easiest solution there was just to remove the unclonable objects from ShaderKernels mitchellhansen 2019-07-27 23:46:26 -07:00
  • db06459bd6 still working on getting ownership of everything squared away mitchellhansen 2019-07-27 22:58:46 -07:00
  • 321f30b4cc The entry point takes a borrow of the shader module which is then cloned by the pipeline. So I gotta keep the shader, entry, and modules in a high scope mitchellhansen 2019-07-20 04:45:49 -07:00
  • 2327a7f05f added compute kernel helper mitchellhansen 2019-07-20 02:48:39 -07:00
  • e476cb2e4e It was the gamma being wrong. Interesting how much different this is working than SFML+OpenCL mitchellhansen 2019-07-18 23:43:55 -07:00
  • 58f5289a3b wasn't the layout. It was the colors being bound between 0-1 instead of 255 like I was expecting mitchellhansen 2019-07-18 22:39:27 -07:00
  • 5928eb5dde getting close, something wrong with copying the buffer. Probably the format that I've selected mitchellhansen 2019-07-17 21:53:22 -07:00
  • 26410b78a2 Got something working. Need to test and verify I'm getting the data from the compute kernel mitchellhansen 2019-07-17 20:11:53 -07:00
  • 4d5b09e9ca adding a second image buffer for GPU only access. Immutable buffer is write once for textures only. No sampler for regular image buffer though?? mitchellhansen 2019-07-16 22:54:37 -07:00
  • 937b4fc8ca added texture. looks like copying the one from the compute output isn't going to totally work out of the box mitchellhansen 2019-07-16 22:33:05 -07:00
  • 5751965ce3 got everything worked out in the loop. I guess next will be to swap the compute buffer to the image buffer mitchellhansen 2019-07-16 21:15:02 -07:00
  • 3f79b276a9 got it working again. Finally clicked with me what was going on with the functions & how to specify their generic types mitchellhansen 2019-07-15 23:57:34 -07:00
  • a71958e815 working on porting. Got some stuff cleaned up but I've broken the example I had running at one point mitchellhansen 2019-07-15 23:20:07 -07:00
  • 86b4f7d9a3 woweee, vkprocessor compiles now mitchellhansen 2019-07-11 23:38:50 -07:00
  • f5bf07085d About 1/3 of the way done encapsulating all this vulkan boilerplate into a struct mitchellhansen 2019-07-11 23:28:56 -07:00
  • 5da2f9f0b5 had a bit of a time finding the problem with the specialization constants being unimplemented. Adding an impl lets rust elicit the pipeline type so I can store it, thank god mitchellhansen 2019-07-11 22:42:59 -07:00
  • c8a968f4f6 porting over the graphics example mitchellhansen 2019-07-11 00:29:44 -07:00
  • d6b81ae468 Got the compute thing going. Needs to be run before the rasterizer but that's fine mitchellhansen 2019-07-10 23:40:39 -07:00
  • 751b7641b2 In the middle of a bit of a versioning hell mitchellhansen 2019-07-09 22:34:14 -07:00
  • 8a699c8f6b porting over to full vulkan mitchellhansen 2019-07-09 21:33:31 -07:00
  • 807597ebaf soul searching on the whole Sprite/Texture thing. It seems like SFML encourages batches of Textures to be loaded vs a constant stream of new Textures like this application will be producing. So, methinks it's time to venture out into some vulkan 2d graphics libraries mitchellhansen 2019-07-08 23:47:15 -07:00
  • cc5b2a346e going to just use the ol update and click routine mitchellhansen 2019-07-07 02:53:37 -07:00
  • 35b4907d5d fighting with the borrow checker. I don't think this child-parent updating works in rust mitchellhansen 2019-07-07 02:33:01 -07:00
  • 820b99ae4e forked shade_runner and added compiler options. Going to add buttons along with a workflow for picking swatches mitchellhansen 2019-07-07 01:00:26 -07:00
  • 942ff4035d added color swatch picking. Need to align it to the slewed image mitchellhansen 2019-07-06 21:22:43 -07:00
  • c3a2c45e21 added dragging mitchellhansen 2019-07-06 20:56:23 -07:00
  • a403d13f41 Working on zooming and scrolling of the image. Want to do a full input chain like I did the raycaster, but I don't know if I want to commit to SFML for my windowing... mitchellhansen 2019-07-06 20:24:15 -07:00
  • 5551581a3e running again mitchellhansen 2019-07-06 19:40:57 -07:00
  • 21c7801fc8 interesting behaviour on the .clone()ing of options and arcs causing compiler errors mitchellhansen 2019-07-06 18:57:14 -07:00
  • 8c56bda87a struggling with the borrow checker mitchellhansen 2019-07-06 16:12:39 -07:00
  • f903b741e0 separating out vulkan stuff mitchellhansen 2019-07-02 21:41:50 -07:00
  • b2b486be84 so that didn't do what I wanted, essentially a pixelate shader ATM mitchellhansen 2019-07-02 18:56:02 -07:00
  • e597e8ef1b stupid stupid stupid. buffer write bug mitchellhansen 2019-07-02 18:07:52 -07:00
  • e7d4d6a8e2 took out all the sfml shader stuff. will port the rest to vulkan if buffer swapping becomes a perf issue mitchellhansen 2019-07-02 18:03:50 -07:00
  • ceb138c391 So it seems like we are constrained to a fixed size buffer? mitchellhansen 2019-07-02 00:12:35 -07:00
  • 20f3075fa8 for some reason I broke it. I think it has to do with the glsl layout mitchellhansen 2019-07-01 23:09:42 -07:00
  • 4b85f6dd1f made buffer loading much faster mitchellhansen 2019-07-01 22:41:40 -07:00
  • d5350a04ff runtime compiled shader. Annoying behaviour forcing clean builds or whitespace modification before picking up shader changes in compile time shader mitchellhansen 2019-06-30 21:53:06 -07:00
  • 8c22536653 adding another buffer for xy mitchellhansen 2019-06-30 01:11:29 -07:00
  • 4de26c702d still dont know why this isn't working mitchellhansen 2019-06-18 23:55:21 -07:00
  • 6698c04b58 just gonna do a file read mitchellhansen 2019-06-18 00:16:37 -07:00
  • e8d94e4ba7 fiddling mitchellhansen 2019-06-13 00:56:52 -07:00
  • 7a9f08c7ec editing the image via vulkan compute shader mitchellhansen 2019-06-12 22:30:10 -07:00
  • 9b266c8d3f moved gpu example to main mitchellhansen 2019-06-12 21:22:06 -07:00
  • ff679e1cab update references mitchellhansen 2019-06-12 20:43:29 -07:00
  • c139121acb moving files mitchellhansen 2019-06-12 20:41:40 -07:00
  • e001f252eb imported shader example mitchellhansen 2019-06-11 00:44:33 -07:00