// Copyright 2018 GFX developers // // Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or // http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or // http://opensource.org/licenses/MIT>, at your option. This file may not be // copied, modified, or distributed except according to those terms.
/// Starts capturing with the capture session defined by a descriptor object. /// /// This function will panic if Metal capture is not enabled. Capture can be enabled by /// either: /// 1. Running from Xcode /// 2. Setting the environment variable `METAL_CAPTURE_ENABLED=1` /// 3. Adding an info.plist file containing the `MetalCaptureEnabled` key set to `YES` pubfn start_capture(&self, descriptor: &CaptureDescriptorRef) -> Result<(), String> { unsafe {
Ok(try_objc! { err =>
msg_send![self, startCaptureWithDescriptor: descriptor
error: &mut err]
})
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.