[−][src]Struct iron_oxide::MTLDevice
Implementations
impl MTLDevice
[src]
pub unsafe fn get_name(&self) -> &str
[src]
pub unsafe fn is_headless(&self) -> bool
[src]
pub unsafe fn is_low_power(&self) -> bool
[src]
pub unsafe fn is_removable(&self) -> bool
[src]
pub unsafe fn get_registry_id(&self) -> u64
[src]
pub unsafe fn get_recommended_max_working_set_size(&self) -> u64
[src]
pub unsafe fn get_current_allocated_size(&self) -> NSUInteger
[src]
pub unsafe fn get_max_threadgroup_memory_length(&self) -> NSUInteger
[src]
pub unsafe fn get_max_threads_per_threadgroup(&self) -> MTLSize
[src]
pub unsafe fn are_programmable_sample_positions_supported(&self) -> bool
[src]
pub unsafe fn get_default_sample_positions(
&self,
count: NSUInteger
) -> MTLSamplePosition
[src]
&self,
count: NSUInteger
) -> MTLSamplePosition
pub unsafe fn are_raster_order_groups_supported(&self) -> bool
[src]
pub unsafe fn is_d24_s8_pixel_format_supported(&self) -> bool
[src]
pub unsafe fn new_command_queue(&self) -> MTLCommandQueue
[src]
pub unsafe fn new_command_queue_with_max_command_buffer_count(
&self,
count: NSUInteger
) -> MTLCommandQueue
[src]
&self,
count: NSUInteger
) -> MTLCommandQueue
pub unsafe fn new_library_with_data(
&self,
data: &[u8]
) -> Result<MTLLibrary, NSError>
[src]
&self,
data: &[u8]
) -> Result<MTLLibrary, NSError>
pub unsafe fn new_library_with_source(
&self,
source: &str,
options: &MTLCompileOptions
) -> Result<MTLLibrary, NSError>
[src]
&self,
source: &str,
options: &MTLCompileOptions
) -> Result<MTLLibrary, NSError>
pub unsafe fn new_render_pipeline_state_with_descriptor(
&self,
desc: &MTLRenderPipelineDescriptor
) -> Result<MTLRenderPipelineState, NSError>
[src]
&self,
desc: &MTLRenderPipelineDescriptor
) -> Result<MTLRenderPipelineState, NSError>
pub unsafe fn new_compute_pipeline_state_with_function(
&self,
function: &MTLFunction
) -> Result<MTLComputePipelineState, NSError>
[src]
&self,
function: &MTLFunction
) -> Result<MTLComputePipelineState, NSError>
pub unsafe fn get_max_buffer_length(&self) -> NSUInteger
[src]
pub unsafe fn new_buffer_with_length(
&self,
length: NSUInteger,
options: MTLResourceOptions
) -> MTLBuffer
[src]
&self,
length: NSUInteger,
options: MTLResourceOptions
) -> MTLBuffer
pub unsafe fn new_buffer_with_bytes(
&self,
bytes: *const c_void,
length: NSUInteger,
options: MTLResourceOptions
) -> MTLBuffer
[src]
&self,
bytes: *const c_void,
length: NSUInteger,
options: MTLResourceOptions
) -> MTLBuffer
pub unsafe fn supports_texture_sample_count(&self, count: NSUInteger) -> bool
[src]
pub unsafe fn new_texture_with_descriptor(
&self,
descriptor: &MTLTextureDescriptor
) -> MTLTexture
[src]
&self,
descriptor: &MTLTextureDescriptor
) -> MTLTexture
pub unsafe fn new_sampler_state_with_descriptor(
&self,
desc: &MTLSamplerDescriptor
) -> MTLSamplerState
[src]
&self,
desc: &MTLSamplerDescriptor
) -> MTLSamplerState
pub unsafe fn new_depth_stencil_state_with_descriptor(
&self,
desc: &MTLDepthStencilDescriptor
) -> MTLDepthStencilState
[src]
&self,
desc: &MTLDepthStencilDescriptor
) -> MTLDepthStencilState
Trait Implementations
impl Drop for MTLDevice
[src]
impl Object for MTLDevice
[src]
unsafe fn from_ptr(ptr: ObjectPointer) -> Self
[src]
fn get_ptr(&self) -> ObjectPointer
[src]
Auto Trait Implementations
impl RefUnwindSafe for MTLDevice
impl !Send for MTLDevice
impl !Sync for MTLDevice
impl Unpin for MTLDevice
impl UnwindSafe for MTLDevice
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,