Revamped shader arch

This commit is contained in:
2026-11-05 16:49:25 +01:00
parent f8671bd35f
commit 9bd2cd5667
20 changed files with 593 additions and 705 deletions
+3 -3
View File
@@ -360,7 +360,7 @@ impl State
init: voxel_cache::CacheAttributeInit::External,
});
let voxel_cache = VoxelCache::<4>::new(&device, 50_000, &layout);
let voxel_cache = VoxelCache::<4>::new(&device, 150_000, &layout);
let request_buffer = CacheRequestBuffer::new(&device, 1024);
let insertion_data = CacheInsertionData::new(&device, 1024, &layout);
@@ -467,7 +467,7 @@ impl State
wgpu::ShaderModuleDescriptorPassthrough {
label: wgpu::__macro_helpers::Some("../shaders/voxel.spv"),
spirv: Some(std::borrow::Cow::Borrowed(wgpu::include_spirv_source!(
"../shaders/voxel.spv"
"../shaders/out/voxel.spv"
))),
entry_points: std::borrow::Cow::Borrowed(&[
wgpu::PassthroughShaderEntryPoint {
@@ -490,7 +490,7 @@ impl State
wgpu::ShaderModuleDescriptorPassthrough {
label: wgpu::__macro_helpers::Some("../shaders/gi.spv"),
spirv: Some(std::borrow::Cow::Borrowed(wgpu::include_spirv_source!(
"../shaders/gi.spv"
"../shaders/out/gi.spv"
))),
entry_points: std::borrow::Cow::Borrowed(&[
wgpu::PassthroughShaderEntryPoint {