File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -555,6 +555,7 @@ pub struct CoreRenderBundleEncoder {
555555
556556#[ derive( Debug ) ]
557557pub struct CoreRenderBundle {
558+ context : ContextWgpuCore ,
558559 id : wgc:: id:: RenderBundleId ,
559560}
560561
@@ -3828,12 +3829,22 @@ impl dispatch::RenderBundleEncoderInterface for CoreRenderBundleEncoder {
38283829 self . context
38293830 . handle_error_fatal ( err, "RenderBundleEncoder::finish" ) ;
38303831 }
3831- CoreRenderBundle { id } . into ( )
3832+ CoreRenderBundle {
3833+ context : self . context . clone ( ) ,
3834+ id,
3835+ }
3836+ . into ( )
38323837 }
38333838}
38343839
38353840impl dispatch:: RenderBundleInterface for CoreRenderBundle { }
38363841
3842+ impl Drop for CoreRenderBundle {
3843+ fn drop ( & mut self ) {
3844+ self . context . 0 . render_bundle_drop ( self . id )
3845+ }
3846+ }
3847+
38373848impl dispatch:: SurfaceInterface for CoreSurface {
38383849 fn get_capabilities ( & self , adapter : & dispatch:: DispatchAdapter ) -> wgt:: SurfaceCapabilities {
38393850 let adapter = adapter. as_core ( ) ;
You can’t perform that action at this time.
0 commit comments