mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 01:48:28 +00:00
Simplify names of variables
This commit is contained in:
parent
32d477ab0f
commit
2b360f5a44
@ -38,12 +38,12 @@ impl Pipeline<VerticesVertex> {
|
||||
config: &wgpu::SurfaceConfiguration,
|
||||
uniforms: &wgpu::Buffer,
|
||||
) -> Self {
|
||||
let vertices_shaders = Shaders::new(
|
||||
let shaders = Shaders::new(
|
||||
device,
|
||||
config,
|
||||
wgpu::include_wgsl!("shaders/vertices.wgsl"),
|
||||
);
|
||||
Self::new(device, &vertices_shaders, uniforms)
|
||||
Self::new(device, &shaders, uniforms)
|
||||
}
|
||||
}
|
||||
|
||||
@ -53,12 +53,12 @@ impl Pipeline<TrianglesVertex> {
|
||||
config: &wgpu::SurfaceConfiguration,
|
||||
uniforms: &wgpu::Buffer,
|
||||
) -> Self {
|
||||
let triangles_shaders = Shaders::new(
|
||||
let shaders = Shaders::new(
|
||||
device,
|
||||
config,
|
||||
wgpu::include_wgsl!("shaders/triangles.wgsl"),
|
||||
);
|
||||
Self::new(device, &triangles_shaders, uniforms)
|
||||
Self::new(device, &shaders, uniforms)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user