diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-12 19:01:27 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-12 19:01:27 -0400 |
| commit | a0a3b3974cab754c10a1517d82762b99482970ce (patch) | |
| tree | 8aeb0ca1e007bacecc8e12a263bd5aa321b8f69a /src/wgpuctx/pipeline.rs | |
| parent | 7f63ec5c10eb7e8dd4edaabd1a6a437328911d39 (diff) | |
| download | systemic4x-main.tar.gz systemic4x-main.tar.bz2 systemic4x-main.zip | |
Diffstat (limited to 'src/wgpuctx/pipeline.rs')
| -rw-r--r-- | src/wgpuctx/pipeline.rs | 10 |
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, } ) |
