summaryrefslogtreecommitdiffstats
path: root/src/wgpuctx/pipeline.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wgpuctx/pipeline.rs')
-rw-r--r--src/wgpuctx/pipeline.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wgpuctx/pipeline.rs b/src/wgpuctx/pipeline.rs
index d698ac4..460b71d 100644
--- a/src/wgpuctx/pipeline.rs
+++ b/src/wgpuctx/pipeline.rs
@@ -3,7 +3,7 @@ use crate::wgpuctx::WgpuCtx;
pub struct RenderPipelineBuilder<'a>
{
- bind_groups: Vec<&'a wgpu::BindGroupLayout>,
+ bind_groups: Vec<Option<&'a wgpu::BindGroupLayout>>,
shader: &'a wgpu::ShaderModule,
vertex_entry_point: Option<&'static str>,
@@ -44,7 +44,7 @@ impl<'a> RenderPipelineBuilder<'a>
mut self,
bindgroup: &'a wgpu::BindGroupLayout)
-> Self {
- self.bind_groups.push(bindgroup);
+ self.bind_groups.push(Some(bindgroup));
self
}
@@ -79,7 +79,7 @@ impl<'a> RenderPipelineBuilder<'a>
let layout_descr = wgpu::PipelineLayoutDescriptor {
label: label,
bind_group_layouts: self.bind_groups.as_slice(),
- push_constant_ranges: &[]
+ immediate_size: 0,
};
let layout = wgpuctx.create_pipeline_layout(&layout_descr);
@@ -134,8 +134,8 @@ impl<'a> RenderPipelineBuilder<'a>
mask: !0,
alpha_to_coverage_enabled: false
},
- multiview: None,
- cache: None
+ cache: None,
+ multiview_mask: None,
}
)