MCPcopy Create free account
hub / github.com/Recordscript/recordscript / unmap

Method unmap

libs/scrap/src/dxgi/mod.rs:359–370  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

357 }
358
359 fn unmap(&self) {
360 unsafe {
361 (*self.duplication.0).ReleaseFrame();
362 if self.fastlane {
363 (*self.duplication.0).UnMapDesktopSurface();
364 } else {
365 if !self.surface.is_null() {
366 (*self.surface.0).Unmap();
367 }
368 }
369 }
370 }
371
372 pub fn device(&self) -> AdapterDevice {
373 AdapterDevice {

Callers 2

get_pixelbufferMethod · 0.80
dropMethod · 0.80

Calls 1

is_nullMethod · 0.45

Tested by

no test coverage detected