VoxelCache refactor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user