pub struct PipelineOptions(/* private fields */);Expand description
Options for MTL4 pipeline creation.
C++ equivalent: MTL4::PipelineOptions
PipelineOptions controls shader reflection and validation settings for pipeline compilation.
Implementations§
Source§impl PipelineOptions
impl PipelineOptions
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a PipelineOptions from a raw pointer.
Sourcepub fn shader_reflection(&self) -> ShaderReflection
pub fn shader_reflection(&self) -> ShaderReflection
Get the shader reflection options.
C++ equivalent: ShaderReflection shaderReflection() const
Sourcepub fn set_shader_reflection(&self, reflection: ShaderReflection)
pub fn set_shader_reflection(&self, reflection: ShaderReflection)
Set the shader reflection options.
C++ equivalent: void setShaderReflection(MTL4::ShaderReflection)
Sourcepub fn shader_validation(&self) -> ShaderValidation
pub fn shader_validation(&self) -> ShaderValidation
Get the shader validation setting.
C++ equivalent: MTL::ShaderValidation shaderValidation() const
Sourcepub fn set_shader_validation(&self, validation: ShaderValidation)
pub fn set_shader_validation(&self, validation: ShaderValidation)
Set the shader validation setting.
C++ equivalent: void setShaderValidation(MTL::ShaderValidation)
Trait Implementations§
Source§impl Clone for PipelineOptions
impl Clone for PipelineOptions
Source§impl Debug for PipelineOptions
impl Debug for PipelineOptions
Source§impl Drop for PipelineOptions
impl Drop for PipelineOptions
Source§impl Referencing for PipelineOptions
impl Referencing for PipelineOptions
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for PipelineOptions
impl Sync for PipelineOptions
Auto Trait Implementations§
impl Freeze for PipelineOptions
impl RefUnwindSafe for PipelineOptions
impl Unpin for PipelineOptions
impl UnwindSafe for PipelineOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more