mirror of
https://github.com/hannobraun/Fornjot
synced 2025-11-22 07:22:06 +00:00
Add Pipeline::vertices
This commit is contained in:
parent
13b4d3d0aa
commit
b8509aed00
@ -14,9 +14,7 @@ impl Pipelines {
|
|||||||
config: &wgpu::SurfaceConfiguration,
|
config: &wgpu::SurfaceConfiguration,
|
||||||
uniforms: &wgpu::Buffer,
|
uniforms: &wgpu::Buffer,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let vertices_shaders = Shaders::vertices(device, config);
|
let vertices_pipeline = Pipeline::vertices(device, config, uniforms);
|
||||||
let vertices_pipeline =
|
|
||||||
Pipeline::new(device, &vertices_shaders, uniforms);
|
|
||||||
|
|
||||||
let triangles_shaders = Shaders::triangles(device, config);
|
let triangles_shaders = Shaders::triangles(device, config);
|
||||||
let triangles_pipeline =
|
let triangles_pipeline =
|
||||||
@ -35,6 +33,15 @@ pub struct Pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Pipeline {
|
impl Pipeline {
|
||||||
|
pub fn vertices(
|
||||||
|
device: &wgpu::Device,
|
||||||
|
config: &wgpu::SurfaceConfiguration,
|
||||||
|
uniforms: &wgpu::Buffer,
|
||||||
|
) -> Self {
|
||||||
|
let vertices_shaders = Shaders::vertices(device, config);
|
||||||
|
Pipeline::new(device, &vertices_shaders, uniforms)
|
||||||
|
}
|
||||||
|
|
||||||
pub fn new(
|
pub fn new(
|
||||||
device: &wgpu::Device,
|
device: &wgpu::Device,
|
||||||
shaders: &Shaders<impl Vertex>,
|
shaders: &Shaders<impl Vertex>,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user