mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-20 08:56:22 +00:00
Make name of variable more explicit
This commit is contained in:
parent
8d38eb0005
commit
d05c127653
@ -39,20 +39,20 @@ impl Renderer {
|
|||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
let size = window.inner_size();
|
let size = window.inner_size();
|
||||||
let config = surface
|
let surface_config = surface
|
||||||
.get_default_config(&adapter, size.width, size.height)
|
.get_default_config(&adapter, size.width, size.height)
|
||||||
.ok_or_else(|| anyhow!("Failed to get default surface config"))?;
|
.ok_or_else(|| anyhow!("Failed to get default surface config"))?;
|
||||||
surface.configure(&device, &config);
|
surface.configure(&device, &surface_config);
|
||||||
|
|
||||||
let pipelines = Pipelines::new(&device, &config);
|
let pipelines = Pipelines::new(&device, &surface_config);
|
||||||
|
|
||||||
let depth_view = {
|
let depth_view = {
|
||||||
let depth_texture =
|
let depth_texture =
|
||||||
device.create_texture(&wgpu::TextureDescriptor {
|
device.create_texture(&wgpu::TextureDescriptor {
|
||||||
label: None,
|
label: None,
|
||||||
size: wgpu::Extent3d {
|
size: wgpu::Extent3d {
|
||||||
width: config.width,
|
width: surface_config.width,
|
||||||
height: config.height,
|
height: surface_config.height,
|
||||||
depth_or_array_layers: 1,
|
depth_or_array_layers: 1,
|
||||||
},
|
},
|
||||||
mip_level_count: 1,
|
mip_level_count: 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user