Commit Graph

151 Commits

Author SHA1 Message Date
Jarrod Doyle ed46752c92
Remove unnecessary reupload of entire brickmap buffers 2023-05-06 12:29:36 +01:00
Jarrod Doyle 4eaf55a61c
Remove unnecessary CPU side duplicate of the shading table 2023-05-06 12:28:22 +01:00
Jarrod Doyle 3896027ea9
Remove unused code/comments 2023-05-05 17:18:03 +01:00
Jarrod Doyle b1d012c05b
Remove pub from shading table bucket/allocator functions 2023-05-05 14:54:38 +01:00
Jarrod Doyle 3ab9bcb3a1
Correct GPU shading table size 2023-05-05 14:53:29 +01:00
Jarrod Doyle f3f10d5513
Use shading table allocator in brickmap 2023-05-05 14:49:07 +01:00
Jarrod Doyle e86af05a1f
Add shading table bucket allocator 2023-05-05 14:48:54 +01:00
Jarrod Doyle a4179fa307
Cull interior voxels from gpu brickmap upload 2023-05-05 10:47:08 +01:00
Jarrod Doyle 12cde87246
Adjust buffer sizes and add todo list 2023-05-04 16:27:15 +01:00
Jarrod Doyle 71d547cd62
Define device limits in App, and raise buffer size limits 2023-05-04 16:17:32 +01:00
Jarrod Doyle 6d9fc9b0b8
Use cache index to place shader table values 2023-05-04 16:16:04 +01:00
Jarrod Doyle 0625d2e264
Correctly calculate chunk index when processing the load queue 2023-05-04 16:14:54 +01:00
Jarrod Doyle 53ccebf4a6
Add brickmaps to the cache sequentially 2023-05-04 10:51:47 +01:00
Jarrod Doyle 66dfffd78b
Only upload modified parts of brickmap buffers 2023-05-03 15:10:18 +01:00
Jarrod Doyle af0ab3bb66
Add basic CPU to GPU streaming system 2023-05-03 14:44:42 +01:00
Jarrod Doyle 3fb089d392
Remove unnecessary New function from Brickmap uniform struct 2023-04-29 14:51:35 +01:00
Jarrod Doyle b51f0b42e2
Revert brickmap sphere colour changes 2023-04-29 14:50:59 +01:00
Jarrod Doyle 63e1fd94bd
Simple framerate logging 2023-04-29 10:30:49 +01:00
Jarrod Doyle 2555ec55b4
Start work on brickgrids 2023-04-25 13:54:33 +01:00
Jarrod Doyle 1823d8b52c
Add initial multi-brickmap support 2023-04-25 12:23:55 +01:00
Jarrod Doyle 225c76b1a8
Add a basic brickmap shading table 2023-04-24 19:34:19 +01:00
Jarrod Doyle 6be2dd8054
Begin using basic brickmap. Doesn't include shading table 2023-04-24 17:17:56 +01:00
Jarrod Doyle 5914efaea8
Remove unused code 2023-04-24 14:01:36 +01:00
Jarrod Doyle 249ab27777
Make Renderer a trait and implement it for VoxelRenderer 2023-04-24 13:52:38 +01:00
Jarrod Doyle a0df8d2bfc
Implement Debug for Texture and TextureBuilder 2023-04-24 13:50:22 +01:00
Jarrod Doyle 057d849e24
Make CameraController public 2023-04-24 13:47:59 +01:00
Jarrod Doyle 55b79f0b39
Fix voxel sphere offset 2023-04-24 09:49:07 +01:00
Jarrod Doyle 230024ac63
Move app and camera to core module 2023-04-24 09:28:33 +01:00
Jarrod Doyle a94932836f
Moved renderer to render module 2023-04-24 09:24:22 +01:00
Jarrod Doyle bbc43b53fd
Remove unused imports 2023-04-23 09:56:48 +01:00
Jarrod Doyle 4f8602c48e
Move camera out of renderer 2023-04-21 12:53:42 +01:00
Jarrod Doyle c6932e6646
Use bind group and bind group layout builders 2023-04-21 12:29:46 +01:00
Jarrod Doyle 20aeaa304d
Add bind group and bind group layout builders 2023-04-21 12:29:45 +01:00
Jarrod Doyle b73d9b8f2b
Clamp camera pitch between -85 and 85 degrees 2023-04-21 12:29:45 +01:00
Jarrod Doyle fddb07d51e
Move texture and context structures to new Render module 2023-04-18 21:57:28 +01:00
Jarrod Doyle 9554f3ba7f
Integrate camera system 2023-04-18 17:06:59 +01:00
Jarrod Doyle 1d26c78b3e
Add simple camera system 2023-04-18 17:06:33 +01:00
Jarrod Doyle 64b0c9d308
Added frame delta time calculation 2023-04-18 17:04:55 +01:00
Jarrod Doyle 892747d6c4
Begin using the voxel volume shader 2023-04-18 10:56:17 +01:00
Jarrod Doyle 7d29cdf86a
Texture views take dimension from texture dimension 2023-04-18 10:42:11 +01:00
Jarrod Doyle e13aab1808
Use the voxel raycast shader 2023-04-08 21:54:20 +01:00
Jarrod Doyle 2887a0a0af
Use compute shader to change texture 2023-04-08 21:54:20 +01:00
Jarrod Doyle 94ade95743
Add shader stage visibility and texture usage to TextureBuilder 2023-04-08 21:54:20 +01:00
Jarrod Doyle 9cf17a8066
Update shader and renderer to use a dummy render texture 2023-04-08 21:54:20 +01:00
Jarrod Doyle 34da4bf0fc
Add texture bind group generation 2023-04-08 21:54:19 +01:00
Jarrod Doyle b391d04a91
Add WGPU Texture wrapper 2023-04-08 21:54:19 +01:00
Jarrod Doyle a9e0547f5a
Rename AppWindow to App 2023-04-08 21:54:19 +01:00
Jarrod Doyle 3e001a930f
Use new RenderCtx and Renderer structs 2023-04-08 21:54:19 +01:00
Jarrod Doyle 6a9335089b
Create RenderContext and Renderer structs 2023-04-08 21:54:19 +01:00
Jarrod Doyle fa9b8dd855
Basic window creation 2023-04-08 21:54:18 +01:00
Jarrod Doyle fcdcb4c34a
Create Rust project 2023-04-08 21:54:18 +01:00