Skip to content

Commit

Permalink
No longer require wide_lines feature from graphics device
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOptik committed Mar 29, 2024
1 parent 3ef1f6e commit 42ed709
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/graphics/renderers/deferred/box/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,10 @@ impl BoxRenderer {
vertex_shader: &EntryPoint,
fragment_shader: &EntryPoint,
) -> Arc<GraphicsPipeline> {
let rasterization_state = RasterizationState {
line_width: StateMode::Fixed(3.0),
..Default::default()
};

PipelineBuilder::<_, { DeferredRenderer::lighting_subpass() }>::new([vertex_shader, fragment_shader])
.vertex_input_state::<WaterVertex>(vertex_shader)
.topology(PrimitiveTopology::LineList)
.fixed_viewport(viewport)
.rasterization_state(rasterization_state)
.build(device, subpass)
}

Expand Down
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ fn main() {
enabled_features: vulkano::device::Features {
sampler_anisotropy: true,
#[cfg(feature = "debug")]
wide_lines: true,
#[cfg(feature = "debug")]
fill_mode_non_solid: true,
..Default::default()
},
Expand Down

0 comments on commit 42ed709

Please sign in to comment.