Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
hakolao committed Jul 20, 2024
1 parent bb3dc3b commit 23f8698
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/triangle/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ fn create_triangle_pipeline(context: &GlassContext) -> RenderPipeline {
vertex: wgpu::VertexState {
module: &shader,
entry_point: "vs_main",
compilation_options: Default::default(),
buffers: &[],
},
fragment: Some(wgpu::FragmentState {
module: &shader,
entry_point: "fs_main",
compilation_options: Default::default(),
targets: &[Some(TextureFormat::Bgra8UnormSrgb.into())],
}),
primitive: PrimitiveState::default(),
Expand Down

0 comments on commit 23f8698

Please sign in to comment.