Skip to content

Commit

Permalink
Image/glyph pipe: pass correct label
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Jul 28, 2022
1 parent 60693e1 commit 28a08cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/kas-wgpu/src/draw/atlases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ impl<I: bytemuck::Pod> Pipeline<I> {
/// - `tex_format`: texture format
pub fn new(
device: &wgpu::Device,
label: Option<&'static str>,
bg_common: &wgpu::BindGroupLayout,
tex_size: i32,
tex_format: wgpu::TextureFormat,
Expand Down Expand Up @@ -131,7 +132,7 @@ impl<I: bytemuck::Pod> Pipeline<I> {
});

let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
label: Some("atlas render pipeline"),
label,
layout: Some(&pipeline_layout),
vertex,
primitive: wgpu::PrimitiveState {
Expand Down
1 change: 1 addition & 0 deletions crates/kas-wgpu/src/draw/images.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ impl Images {
) -> Self {
let atlas_pipe = atlases::Pipeline::new(
device,
Some("images pipe"),
bgl_common,
2048,
wgpu::TextureFormat::Rgba8UnormSrgb,
Expand Down
1 change: 1 addition & 0 deletions crates/kas-wgpu/src/draw/text_pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ impl Pipeline {
) -> Self {
let atlas_pipe = atlases::Pipeline::new(
device,
Some("text pipe"),
bgl_common,
512,
wgpu::TextureFormat::R8Unorm,
Expand Down

0 comments on commit 28a08cd

Please sign in to comment.