@@ -68,14 +68,14 @@ impl FanFillRenderer {
6868 } ) ;
6969
7070 let pipeline_layout = device. create_pipeline_layout ( & wgpu:: PipelineLayoutDescriptor {
71- label : Some ( "fan_pipeline_layout" ) ,
72- bind_group_layouts : & [ & bind_group_layout] ,
73- push_constant_ranges : & [ ] ,
71+ label : Some ( "fan_pipeline_layout" ) ,
72+ bind_group_layouts : & [ Some ( & bind_group_layout) ] ,
73+ immediate_size : 0 ,
7474 } ) ;
7575 let mut stencil_pipeline_descriptor = wgpu:: RenderPipelineDescriptor {
76- label : Some ( "stencil_pipeline" ) ,
77- layout : Some ( & pipeline_layout) ,
78- vertex : wgpu:: VertexState {
76+ label : Some ( "stencil_pipeline" ) ,
77+ layout : Some ( & pipeline_layout) ,
78+ vertex : wgpu:: VertexState {
7979 module : & shader,
8080 entry_point : Some ( "vs_main" ) ,
8181 buffers : & [ wgpu:: VertexBufferLayout {
@@ -89,12 +89,12 @@ impl FanFillRenderer {
8989 } ] ,
9090 compilation_options : wgpu:: PipelineCompilationOptions :: default ( ) ,
9191 } ,
92- fragment : None , // No color output in stencil pass
93- primitive : wgpu:: PrimitiveState :: default ( ) ,
94- depth_stencil : Some ( wgpu:: DepthStencilState {
92+ fragment : None , // No color output in stencil pass
93+ primitive : wgpu:: PrimitiveState :: default ( ) ,
94+ depth_stencil : Some ( wgpu:: DepthStencilState {
9595 format : wgpu:: TextureFormat :: Stencil8 ,
96- depth_write_enabled : false ,
97- depth_compare : wgpu:: CompareFunction :: Always ,
96+ depth_write_enabled : Some ( false ) ,
97+ depth_compare : Some ( wgpu:: CompareFunction :: Always ) ,
9898 stencil : wgpu:: StencilState {
9999 front : wgpu:: StencilFaceState {
100100 compare : wgpu:: CompareFunction :: Always ,
@@ -113,16 +113,16 @@ impl FanFillRenderer {
113113 } ,
114114 bias : wgpu:: DepthBiasState :: default ( ) ,
115115 } ) ,
116- multisample : wgpu:: MultisampleState :: default ( ) ,
117- multiview : None ,
118- cache : None ,
116+ multisample : wgpu:: MultisampleState :: default ( ) ,
117+ multiview_mask : None ,
118+ cache : None ,
119119 } ;
120120 let even_odd_stencil_pipeline = device. create_render_pipeline ( & stencil_pipeline_descriptor) ;
121121
122122 stencil_pipeline_descriptor. depth_stencil = Some ( wgpu:: DepthStencilState {
123123 format : wgpu:: TextureFormat :: Stencil8 ,
124- depth_write_enabled : false ,
125- depth_compare : wgpu:: CompareFunction :: Always ,
124+ depth_write_enabled : Some ( false ) ,
125+ depth_compare : Some ( wgpu:: CompareFunction :: Always ) ,
126126 stencil : wgpu:: StencilState {
127127 front : wgpu:: StencilFaceState {
128128 compare : wgpu:: CompareFunction :: Always ,
@@ -144,15 +144,15 @@ impl FanFillRenderer {
144144 let non_zero_stencil_pipeline = device. create_render_pipeline ( & stencil_pipeline_descriptor) ;
145145
146146 let color_pipeline_descriptor = wgpu:: RenderPipelineDescriptor {
147- label : Some ( "color_pipeline" ) ,
148- layout : Some ( & pipeline_layout) ,
149- vertex : wgpu:: VertexState {
147+ label : Some ( "color_pipeline" ) ,
148+ layout : Some ( & pipeline_layout) ,
149+ vertex : wgpu:: VertexState {
150150 module : & shader,
151151 entry_point : Some ( "vs_quad" ) ,
152152 buffers : & [ ] ,
153153 compilation_options : wgpu:: PipelineCompilationOptions :: default ( ) ,
154154 } ,
155- fragment : Some ( wgpu:: FragmentState {
155+ fragment : Some ( wgpu:: FragmentState {
156156 module : & shader,
157157 entry_point : Some ( "fs_quad" ) ,
158158 targets : & [ Some ( wgpu:: ColorTargetState {
@@ -162,11 +162,11 @@ impl FanFillRenderer {
162162 } ) ] ,
163163 compilation_options : wgpu:: PipelineCompilationOptions :: default ( ) ,
164164 } ) ,
165- primitive : wgpu:: PrimitiveState :: default ( ) ,
166- depth_stencil : Some ( wgpu:: DepthStencilState {
165+ primitive : wgpu:: PrimitiveState :: default ( ) ,
166+ depth_stencil : Some ( wgpu:: DepthStencilState {
167167 format : wgpu:: TextureFormat :: Stencil8 ,
168- depth_write_enabled : false ,
169- depth_compare : wgpu:: CompareFunction :: Always ,
168+ depth_write_enabled : Some ( false ) ,
169+ depth_compare : Some ( wgpu:: CompareFunction :: Always ) ,
170170 stencil : wgpu:: StencilState {
171171 front : wgpu:: StencilFaceState {
172172 compare : wgpu:: CompareFunction :: NotEqual ,
@@ -185,9 +185,9 @@ impl FanFillRenderer {
185185 } ,
186186 bias : wgpu:: DepthBiasState :: default ( ) ,
187187 } ) ,
188- multisample : wgpu:: MultisampleState :: default ( ) ,
189- multiview : None ,
190- cache : None ,
188+ multisample : wgpu:: MultisampleState :: default ( ) ,
189+ multiview_mask : None ,
190+ cache : None ,
191191 } ;
192192 let color_pipeline = device. create_render_pipeline ( & color_pipeline_descriptor) ;
193193
@@ -399,6 +399,7 @@ impl FanFillRenderer {
399399 } ) ,
400400 timestamp_writes : None ,
401401 occlusion_query_set : None ,
402+ multiview_mask : None ,
402403 } ) ;
403404
404405 match fill_rule {
@@ -439,6 +440,7 @@ impl FanFillRenderer {
439440 } ) ,
440441 timestamp_writes : None ,
441442 occlusion_query_set : None ,
443+ multiview_mask : None ,
442444 } ) ;
443445
444446 color_pass. set_pipeline ( & resources. color_pipeline ) ;
0 commit comments