Skip to content

Commit

Permalink
Add compilation options to VertexState and FragmentState
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHayton committed Jun 22, 2024
1 parent a8aad5f commit 007bb21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/beginner/tutorial3-pipeline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescrip
module: &shader,
entry_point: "vs_main", // 1.
buffers: &[], // 2.
compilation_options: wgpu::PipelineCompilationOptions::default(),
},
fragment: Some(wgpu::FragmentState { // 3.
module: &shader,
Expand All @@ -217,6 +218,7 @@ let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescrip
blend: Some(wgpu::BlendState::REPLACE),
write_mask: wgpu::ColorWrites::ALL,
})],
compilation_options: wgpu::PipelineCompilationOptions::default(),
}),
// continued ...
```
Expand Down

0 comments on commit 007bb21

Please sign in to comment.