VoxelCache refactor

This commit is contained in:
2026-10-04 20:15:00 +02:00
parent d9df73abab
commit b560f6afd7
14 changed files with 693 additions and 518 deletions
+1 -8
View File
@@ -81,17 +81,10 @@ public struct RequestBufferElement
public Atomic<uint32_t> requests[64];
}
public struct LocationPoolElement
{
public uint32_t structure_id;
public uint32_t structure_locator;
}
public struct VoxelCache
{
public RWStructuredBuffer<StructurePoolElement> structure_pool;
public RWStructuredBuffer<uint32_t> attributes_pool[2];
public RWStructuredBuffer<LocationPoolElement> location_pool;
public RWStructuredBuffer<RequestBufferElement> request_buffer;
public RWStructuredBuffer<uint32_t> usage_buffer;
public RWStructuredBuffer<StructurePointer> structure_table_pointer;
@@ -356,7 +349,7 @@ public HitInformation ray_cast(
context.ray_direction,
position - float3(current_voxel),
chunk_index,
t_adv,
max(t_adv, 0.01),
stack_index,
context.frame_timestamp,
context.cache_report);