[][src]Struct iron_oxide::MTLDevice

pub struct 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_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]

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]

pub unsafe fn new_library_with_data(
    &self,
    data: &[u8]
) -> Result<MTLLibrary, NSError>
[src]

pub unsafe fn new_library_with_source(
    &self,
    source: &str,
    options: &MTLCompileOptions
) -> Result<MTLLibrary, NSError>
[src]

pub unsafe fn new_render_pipeline_state_with_descriptor(
    &self,
    desc: &MTLRenderPipelineDescriptor
) -> Result<MTLRenderPipelineState, NSError>
[src]

pub unsafe fn new_compute_pipeline_state_with_function(
    &self,
    function: &MTLFunction
) -> Result<MTLComputePipelineState, NSError>
[src]

pub unsafe fn get_max_buffer_length(&self) -> NSUInteger[src]

pub unsafe fn new_buffer_with_length(
    &self,
    length: NSUInteger,
    options: MTLResourceOptions
) -> MTLBuffer
[src]

pub unsafe fn new_buffer_with_bytes(
    &self,
    bytes: *const c_void,
    length: NSUInteger,
    options: MTLResourceOptions
) -> MTLBuffer
[src]

pub unsafe fn supports_texture_sample_count(&self, count: NSUInteger) -> bool[src]

pub unsafe fn new_texture_with_descriptor(
    &self,
    descriptor: &MTLTextureDescriptor
) -> MTLTexture
[src]

pub unsafe fn new_sampler_state_with_descriptor(
    &self,
    desc: &MTLSamplerDescriptor
) -> MTLSamplerState
[src]

pub unsafe fn new_depth_stencil_state_with_descriptor(
    &self,
    desc: &MTLDepthStencilDescriptor
) -> MTLDepthStencilState
[src]

Trait Implementations

impl Drop for MTLDevice[src]

impl Object for MTLDevice[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.