diff options
Diffstat (limited to 'client/src/render/scene/pipelines.rs')
-rw-r--r-- | client/src/render/scene/pipelines.rs | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/client/src/render/scene/pipelines.rs b/client/src/render/scene/pipelines.rs index 675cfae..dfc5d19 100644 --- a/client/src/render/scene/pipelines.rs +++ b/client/src/render/scene/pipelines.rs @@ -99,20 +99,12 @@ impl PipelineSpec { let pipeline_layout = device.create_pipeline_layout(&PipelineLayoutDescriptor { label: None, bind_group_layouts: &[&layouts.texture, &layouts.texture, &layouts.material], - push_constant_ranges: &[ - PushConstantRange { - // 4x4 view projections - // 3x3(+1 pad) model basis - // 3(+1 pad) camera position - range: 0..((4 * 4 + 3 * 4) * size_of::<f32>() as u32), - stages: ShaderStages::VERTEX, - }, - PushConstantRange { - range: ((4 * 4 + 3 * 4) * size_of::<f32>() as u32) - ..(4 * 4 + 3 * 4 + 4) * size_of::<f32>() as u32, - stages: ShaderStages::FRAGMENT, - }, - ], + push_constant_ranges: &[PushConstantRange { + // 4x4 model * view * project + // 4x4 model * view + range: 0..((4 * 4 + 4 * 4) * size_of::<f32>() as u32), + stages: ShaderStages::VERTEX, + }], }); device.create_render_pipeline(&RenderPipelineDescriptor { label: None, |