Skip to content

Commit

Permalink
Merge pull request #561 from AlexHayton/vertexstate
Browse files Browse the repository at this point in the history
Add compilation options to VertexState and FragmentState
  • Loading branch information
sotrh authored Jul 2, 2024
2 parents a8aad5f + 007bb21 commit 49f9377
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 49f9377

Please sign in to comment.