@@ -83,22 +83,25 @@ impl crate::framework::Example for Example {
8383 } ) ] ,
8484 } ) ,
8585 primitive : Default :: default ( ) ,
86- depth_stencil : Some ( wgpu:: DepthStencilState {
87- format : wgpu:: TextureFormat :: Stencil8 ,
88- depth_write_enabled : false ,
89- depth_compare : wgpu:: CompareFunction :: Always ,
90- stencil : wgpu:: StencilState {
91- front : wgpu:: StencilFaceState {
92- compare : wgpu:: CompareFunction :: Always ,
93- pass_op : wgpu:: StencilOperation :: Replace ,
94- ..Default :: default ( )
86+ depth_stencil : Some (
87+ wgpu:: DepthStencilState {
88+ format : wgpu:: TextureFormat :: Stencil8 ,
89+ depth_write_enabled : false ,
90+ depth_compare : wgpu:: CompareFunction :: Always ,
91+ stencil : wgpu:: StencilState {
92+ front : wgpu:: StencilFaceState {
93+ compare : wgpu:: CompareFunction :: Always ,
94+ pass_op : wgpu:: StencilOperation :: Replace ,
95+ ..Default :: default ( )
96+ } ,
97+ back : wgpu:: StencilFaceState :: IGNORE ,
98+ read_mask : !0 ,
99+ write_mask : !0 ,
95100 } ,
96- back : wgpu:: StencilFaceState :: IGNORE ,
97- read_mask : !0 ,
98- write_mask : !0 ,
99- } ,
100- bias : Default :: default ( ) ,
101- } ) ,
101+ bias : Default :: default ( ) ,
102+ }
103+ . into ( ) ,
104+ ) ,
102105 multisample : wgpu:: MultisampleState :: default ( ) ,
103106 multiview_mask : None ,
104107 cache : None ,
@@ -120,11 +123,9 @@ impl crate::framework::Example for Example {
120123 targets : & [ Some ( config. view_formats [ 0 ] . into ( ) ) ] ,
121124 } ) ,
122125 primitive : Default :: default ( ) ,
123- depth_stencil : Some ( wgpu:: DepthStencilState {
124- format : wgpu:: TextureFormat :: Stencil8 ,
125- depth_write_enabled : false ,
126- depth_compare : wgpu:: CompareFunction :: Always ,
127- stencil : wgpu:: StencilState {
126+ depth_stencil : Some ( wgpu:: DepthStencilState :: stencil (
127+ wgpu:: TextureFormat :: Stencil8 ,
128+ wgpu:: StencilState {
128129 front : wgpu:: StencilFaceState {
129130 compare : wgpu:: CompareFunction :: Greater ,
130131 ..Default :: default ( )
@@ -133,8 +134,7 @@ impl crate::framework::Example for Example {
133134 read_mask : !0 ,
134135 write_mask : !0 ,
135136 } ,
136- bias : Default :: default ( ) ,
137- } ) ,
137+ ) ) ,
138138 multisample : wgpu:: MultisampleState :: default ( ) ,
139139 multiview_mask : None ,
140140 cache : None ,
0 commit comments