diff --git a/docs/beginner/tutorial3-pipeline/README.md b/docs/beginner/tutorial3-pipeline/README.md index 5877ce1e..60b0d78e 100644 --- a/docs/beginner/tutorial3-pipeline/README.md +++ b/docs/beginner/tutorial3-pipeline/README.md @@ -187,11 +187,11 @@ let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescrip fragment: Some(wgpu::FragmentState { // 3. module: &shader, entry_point: "fs_main", - targets: &[wgpu::ColorTargetState { // 4. + targets: &[Some(wgpu::ColorTargetState { // 4. format: config.format, blend: Some(wgpu::BlendState::REPLACE), write_mask: wgpu::ColorWrites::ALL, - }], + })], }), // continued ... ``` diff --git a/docs/showcase/windowless/README.md b/docs/showcase/windowless/README.md index 977d2dca..3ea25306 100644 --- a/docs/showcase/windowless/README.md +++ b/docs/showcase/windowless/README.md @@ -158,12 +158,12 @@ let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescrip fragment: Some(wgpu::FragmentState { module: &fs_module, entry_point: "main", - targets: &[wgpu::ColorTargetState { + targets: &[Some(wgpu::ColorTargetState { format: texture_desc.format, alpha_blend: wgpu::BlendState::REPLACE, color_blend: wgpu::BlendState::REPLACE, write_mask: wgpu::ColorWrites::ALL, - }], + })], }), primitive: wgpu::PrimitiveState { topology: wgpu::PrimitiveTopology::TriangleList,