clean up and change generation to use exp2

This commit is contained in:
2024-09-15 16:39:54 -04:00
parent 3d0267f775
commit 1b433c1da7
11 changed files with 93 additions and 371 deletions
+3 -3
View File
@@ -13,8 +13,8 @@ impl DepthTexture {
label: &str,
) -> Self {
let size = wgpu::Extent3d {
width: config.width,
height: config.height,
width: config.width + 1,
height: config.height + 1,
depth_or_array_layers: 1,
};
let desc = wgpu::TextureDescriptor {
@@ -88,7 +88,7 @@ impl StorageTexture {
address_mode_w: wgpu::AddressMode::ClampToEdge,
mag_filter: wgpu::FilterMode::Linear,
min_filter: wgpu::FilterMode::Linear,
mipmap_filter: wgpu::FilterMode::Nearest,
mipmap_filter: wgpu::FilterMode::Linear,
compare: None,
lod_min_clamp: 0.0,
lod_max_clamp: 100.0,