From 007bb210b16dc5e44a7b45b66fa45747f2619e26 Mon Sep 17 00:00:00 2001 From: Alex Hayton Date: Sat, 22 Jun 2024 09:59:24 +0100 Subject: [PATCH] Add compilation options to VertexState and FragmentState --- docs/beginner/tutorial3-pipeline/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/beginner/tutorial3-pipeline/README.md b/docs/beginner/tutorial3-pipeline/README.md index 1f6e113d8..6c4747a65 100644 --- a/docs/beginner/tutorial3-pipeline/README.md +++ b/docs/beginner/tutorial3-pipeline/README.md @@ -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, @@ -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 ... ```