Jarrod Doyle
|
511e4b9233
|
Move Brickmap definition to brickmap_cache
|
2024-03-25 15:40:27 +00:00 |
Jarrod Doyle
|
77b3e5172b
|
Move brickmap cache staging and uploading
|
2024-03-25 15:36:42 +00:00 |
Jarrod Doyle
|
c26f3c8ffb
|
Extract brickgrid to module
|
2024-03-25 13:59:24 +00:00 |
Jarrod Doyle
|
03a74d1b02
|
Merge voxel renderer implementation blocks
|
2024-03-23 16:29:25 +00:00 |
Jarrod Doyle
|
5acea1192c
|
Fix incorrect brickmap unloading (I think)
|
2024-03-23 15:19:11 +00:00 |
Jarrod Doyle
|
e6d73686b4
|
Extract brickmap cache to own module
|
2024-03-23 15:00:01 +00:00 |
Jarrod Doyle
|
60381c6a58
|
Extract util functions
|
2024-03-23 14:56:32 +00:00 |
Jarrod Doyle
|
8e08506e6c
|
Split brickmap cache to it's own struct
|
2024-03-23 14:53:37 +00:00 |
Jarrod Doyle
|
66f44c5461
|
Refactor upload_unpack_buffers
|
2024-03-23 12:31:20 +00:00 |
Jarrod Doyle
|
23ea18c3de
|
Extract handling of requested brickmap to method
|
2024-03-23 11:20:31 +00:00 |
Jarrod Doyle
|
ba973a7306
|
Reorder feedback buffer processing logic
|
2024-03-23 11:06:21 +00:00 |
Jarrod Doyle
|
cbc95df5cb
|
Use buffer extension trait to get feedback buffer
|
2024-03-23 10:56:21 +00:00 |
Jarrod Doyle
|
132bc99540
|
Move shading table to own module
|
2024-03-23 10:28:24 +00:00 |
Jarrod Doyle
|
10f3950e8d
|
Begin separating brickmap into brickworld module
|
2024-03-23 10:25:42 +00:00 |
Jarrod Doyle
|
c0a859b180
|
Move to mod.rs definitions for cleaner folder structure
|
2024-03-23 10:21:40 +00:00 |
Jarrod Doyle
|
5d463daa1e
|
Make things return errors where relevant
|
2024-03-23 10:14:18 +00:00 |
Jarrod Doyle
|
881de4e3b9
|
Fix errors with new versions
|
2024-03-22 11:59:32 +00:00 |
Jarrod Doyle
|
13fad676ad
|
Remove unused import and variable
|
2023-09-08 16:02:26 +01:00 |
Jarrod Doyle
|
a5ec013001
|
Add uninitialised buffer support to builder
Also uses this support in brickmap
|
2023-09-08 16:00:11 +01:00 |
Jarrod Doyle
|
2e7c82c03d
|
Remove unused import
|
2023-09-08 15:40:19 +01:00 |
Jarrod Doyle
|
e85023858c
|
Rename bufferbuilder usage setter
|
2023-09-08 15:39:05 +01:00 |
Jarrod Doyle
|
d2de478096
|
Use buffer builder in brickmap
|
2023-09-08 15:37:46 +01:00 |
Jarrod Doyle
|
1098c418f1
|
Rename render module to gfx
|
2023-09-08 14:33:33 +01:00 |
Jarrod Doyle
|
e3a00341bc
|
Rename currently unused brickgrid flags
|
2023-09-08 14:24:30 +01:00 |
Jarrod Doyle
|
404c7875bf
|
Increase brickmap parameters
|
2023-07-28 14:28:28 +01:00 |
Jarrod Doyle
|
a91b48bf46
|
Move neighbour block getting into the brickmap culling function
|
2023-07-28 12:21:19 +01:00 |
Jarrod Doyle
|
7cdca0a406
|
Slight refactor to Chunk get_block and gen_block
|
2023-07-28 11:55:05 +01:00 |
Jarrod Doyle
|
081ce7ec77
|
Renamed chunk get_block pos argument to block_pos
|
2023-07-28 11:48:00 +01:00 |
Jarrod Doyle
|
e1d621f573
|
Extract chunk block generation out to it's own function
|
2023-07-28 11:45:24 +01:00 |
Jarrod Doyle
|
42fdf48660
|
Consider neighbouring brickmaps when doing non-surface voxel culling
|
2023-07-28 11:03:32 +01:00 |
Jarrod Doyle
|
ea84b43158
|
Fix surface voxel detection logic
|
2023-07-27 22:09:26 +01:00 |
Jarrod Doyle
|
34bcae4693
|
grid_pos_to_world_pos now handles negative grid positions
|
2023-07-27 21:34:38 +01:00 |
Jarrod Doyle
|
26f66813dd
|
Simplified brickmap grid_pos_to_world_pos
|
2023-07-27 21:14:52 +01:00 |
Jarrod Doyle
|
ca7a894ff5
|
Make function perform more accurate to it's name
|
2023-07-27 21:04:31 +01:00 |
Jarrod Doyle
|
997de994e5
|
Make upload and feedback buffer max counts parameterised
|
2023-07-27 19:07:52 +01:00 |
Jarrod Doyle
|
1cdabc0854
|
Make brickmap cache and shading table bucket sizes parameterised
|
2023-07-27 18:59:46 +01:00 |
Jarrod Doyle
|
de0f845cb6
|
Added labels to all relevant WGPU constructs
|
2023-07-05 15:34:23 +01:00 |
Jarrod Doyle
|
9d4223a1cc
|
Made unpack buffer size variable and increased the max element count to 512
|
2023-07-05 14:11:11 +01:00 |
Jarrod Doyle
|
5824bea07e
|
Remove old commented code
|
2023-07-05 14:02:41 +01:00 |
Jarrod Doyle
|
d9697b0179
|
Begin using new GPU side brickgrid/map unpack shader
|
2023-07-05 14:01:53 +01:00 |
Jarrod Doyle
|
3ea0b58ec8
|
Inline unneccesary variables
|
2023-07-03 11:15:27 +01:00 |
Jarrod Doyle
|
374dd254b2
|
Cull interior voxels now creates the bitmask and albedo data itself
|
2023-07-03 11:11:23 +01:00 |
Jarrod Doyle
|
95788f3795
|
Add helper function for grid-world coordinate conversion
|
2023-07-03 11:09:27 +01:00 |
Jarrod Doyle
|
b2b4942a59
|
Only request required part of feedback buffer rather than full range
|
2023-06-30 15:06:57 +01:00 |
Jarrod Doyle
|
b163fa0177
|
Refactored CPU brickmap to make it easier to work on
|
2023-06-30 12:01:26 +01:00 |
Jarrod Doyle
|
bb97a5036e
|
Make brickmap cache cyclic, unloading loaded maps when necessary. Fix crash when cache is full
|
2023-06-29 15:27:36 +01:00 |
Jarrod Doyle
|
5ccebf89cb
|
Fixed shading table deallocation bug
|
2023-06-29 15:24:46 +01:00 |
Jarrod Doyle
|
d8ba20d06e
|
Remove unnecessary count parameter in bind layout uniform entries
|
2023-06-29 11:27:24 +01:00 |
Jarrod Doyle
|
fdd4cbde9c
|
Remove unnecessary count parameter in bind layout storage entries
|
2023-06-29 11:26:11 +01:00 |
Jarrod Doyle
|
056c35a441
|
Add common generic entries to BindGroupLayoutBuilder
|
2023-06-29 10:56:51 +01:00 |