Skip to content

Commit

Permalink
Merge pull request #108 from dezajno/master
Browse files Browse the repository at this point in the history
Upgrade wgpu to 23
  • Loading branch information
hecrj authored Dec 3, 2024
2 parents 5d78e60 + 76a29c2 commit 0888784
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/wgpu_glyph"
readme = "README.md"

[dependencies]
wgpu = "0.19"
wgpu = "23"
glyph_brush = "0.7"
log = "0.4"

Expand Down
7 changes: 5 additions & 2 deletions src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,11 @@ fn build<D>(

let raw = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
label: None,
cache: None,
layout: Some(&layout),
vertex: wgpu::VertexState {
module: &shader,
entry_point: "vs_main",
entry_point: Some("vs_main"),
buffers: &[wgpu::VertexBufferLayout {
array_stride: mem::size_of::<Instance>() as u64,
step_mode: wgpu::VertexStepMode::Instance,
Expand All @@ -308,6 +309,7 @@ fn build<D>(
4 => Float32x4,
],
}],
compilation_options: wgpu::PipelineCompilationOptions::default(),
},
primitive: wgpu::PrimitiveState {
topology: wgpu::PrimitiveTopology::TriangleStrip,
Expand All @@ -319,7 +321,7 @@ fn build<D>(
multisample,
fragment: Some(wgpu::FragmentState {
module: &shader,
entry_point: "fs_main",
entry_point: Some("fs_main"),
targets: &[Some(wgpu::ColorTargetState {
format: render_format,
blend: Some(wgpu::BlendState {
Expand All @@ -336,6 +338,7 @@ fn build<D>(
}),
write_mask: wgpu::ColorWrites::ALL,
})],
compilation_options: wgpu::PipelineCompilationOptions::default(),
}),
multiview: None,
});
Expand Down

0 comments on commit 0888784

Please sign in to comment.