pub fn memory_type_index(&self, type_filter: u32, properties: ::MemoryPropertyFlags)
            -> VdResult<u32> {
        let mem_props = self.physical_device().memory_properties();

        for i in 0..mem_props.memory_type_count() {
            if (type_filter & (1 << i)) != 0 &&
                (mem_props.memory_types()[i as usize].property_flags() & properties) == properties
            {
                return Ok(i);
            }
        }
        panic!("failed to find suitable memory type index with: type_filter: '{}', properties: '{:?}'",
            type_filter, properties);
    }
/// Returns the memory type index on this device matching the provided
/// type filter and properties.
//
Returns the memory type index on this device matching the provided
type filter and properties.
Returns the memory type index on this device matching the provided type filter and properties .
pub fn memory_type_index(&self, type_filter: u32, properties: ::MemoryPropertyFlags)
            -> VdResult<u32> {
        let mem_props = self.physical_device().memory_properties();
        for i in 0..mem_props.memory_type_count() {
            if (type_filter & (1 << i)) != 0 &&
                (mem_props.memory_types()[i as usize].property_flags() & properties) == properties
            {
                return Ok(i);
            }
        }
        panic!("failed to find suitable memory type index with: type_filter: '{}', properties: '{:?}'",
            type_filter, properties);
    }
pub fn memory_type_index ( & self , type_filter : u32 , properties : :: MemoryPropertyFlags ) -> VdResult < u32 > { let mem_props = self . physical_device ( ) . memory_properties ( ) ; for i in 0 .. mem_props . memory_type_count ( ) { if ( type_filter & ( 1 << i ) ) != 0 && ( mem_props . memory_types ( ) [ i as usize ] . property_flags ( ) & properties ) == properties { return Ok ( i ) ; } } panic ! ( " " type_filter properties ) ; }
Returns the memory type index on this device matching the provided
type filter and properties.
Returns the memory type index on this device matching the provided type filter and properties .
&self
type_filter
u32
properties
::MemoryPropertyFlags
&self
type_filter
u32
properties
::MemoryPropertyFlags