Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/objc2-metal/src/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  capture.rs

  Sprache: Rust
 

#![allow(unused_imports)]
use crate::*;
use objc2::runtime::{AnyObject, ProtocolObject};

// SAFETY: The documentation for captureObject specifies that the object
// may be one of these three:
// <https://developer.apple.com/documentation/metal/mtlcapturedescriptor/3237248-captureobject?language=objc>
impl MTLCaptureDescriptor {
    #[doc(alias = "setCaptureObject")]
    #[cfg(feature = "MTLDevice")]
    pub fn set_capture_device(&self, device: &ProtocolObject<dyn MTLDevice>) {
        let device: *const _ = device;
        let device: *const AnyObject = device.cast();
        unsafe { self.setCaptureObject(Some(&*device)) }
    }

    #[doc(alias = "setCaptureObject")]
    #[cfg(feature = "MTLCaptureScope")]
    pub fn set_capture_scope(&self, scope: &ProtocolObject<dyn MTLCaptureScope>) {
        let scope: *const _ = scope;
        let scope: *const AnyObject = scope.cast();
        unsafe { self.setCaptureObject(Some(&*scope)) }
    }

    #[doc(alias = "setCaptureObject")]
    #[cfg(feature = "MTLCommandQueue")]
    pub fn set_capture_command_queue(&self, command_queue: &ProtocolObject<dyn MTLCommandQueue>) {
        let command_queue: *const _ = command_queue;
        let command_queue: *const AnyObject = command_queue.cast();
        unsafe { self.setCaptureObject(Some(&*command_queue)) }
    }
}

Messung V0.5 in Prozent
C=93 H=98 G=95

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.