#[repr(C)]pub struct PhysicalDeviceProperties {
pub api_version: u32,
pub driver_version: u32,
pub vendor_id: u32,
pub device_id: u32,
pub device_type: PhysicalDeviceType,
pub device_name: [i8; 256],
pub pipeline_cache_uuid: [u8; 16],
pub limits: PhysicalDeviceLimits,
pub sparse_properties: PhysicalDeviceSparseProperties,
}Expand description
Fields§
§api_version: u32§driver_version: u32§vendor_id: u32§device_id: u32§device_type: PhysicalDeviceType§device_name: [i8; 256]§pipeline_cache_uuid: [u8; 16]§limits: PhysicalDeviceLimits§sparse_properties: PhysicalDeviceSparsePropertiesImplementations§
Source§impl PhysicalDeviceProperties
impl PhysicalDeviceProperties
pub fn api_version(self, api_version: u32) -> PhysicalDeviceProperties
pub fn driver_version(self, driver_version: u32) -> PhysicalDeviceProperties
pub fn vendor_id(self, vendor_id: u32) -> PhysicalDeviceProperties
pub fn device_id(self, device_id: u32) -> PhysicalDeviceProperties
pub fn device_type( self, device_type: PhysicalDeviceType, ) -> PhysicalDeviceProperties
pub fn device_name( self, device_name: &CStr, ) -> Result<PhysicalDeviceProperties, CStrTooLargeForStaticArray>
pub fn device_name_as_c_str(&self) -> Result<&CStr, FromBytesUntilNulError>
pub fn pipeline_cache_uuid( self, pipeline_cache_uuid: [u8; 16], ) -> PhysicalDeviceProperties
pub fn limits(self, limits: PhysicalDeviceLimits) -> PhysicalDeviceProperties
pub fn sparse_properties( self, sparse_properties: PhysicalDeviceSparseProperties, ) -> PhysicalDeviceProperties
Trait Implementations§
Source§impl Clone for PhysicalDeviceProperties
impl Clone for PhysicalDeviceProperties
Source§fn clone(&self) -> PhysicalDeviceProperties
fn clone(&self) -> PhysicalDeviceProperties
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PhysicalDeviceProperties
Source§impl Debug for PhysicalDeviceProperties
Available on crate feature debug only.
impl Debug for PhysicalDeviceProperties
Available on crate feature
debug only.Source§impl Default for PhysicalDeviceProperties
impl Default for PhysicalDeviceProperties
Source§fn default() -> PhysicalDeviceProperties
fn default() -> PhysicalDeviceProperties
Returns the “default value” for a type. Read more
Source§impl From<PhysicalDeviceProperties> for Vulkan10Properties
impl From<PhysicalDeviceProperties> for Vulkan10Properties
Source§fn from(properties: PhysicalDeviceProperties) -> Self
fn from(properties: PhysicalDeviceProperties) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PhysicalDeviceProperties
impl RefUnwindSafe for PhysicalDeviceProperties
impl Send for PhysicalDeviceProperties
impl Sync for PhysicalDeviceProperties
impl Unpin for PhysicalDeviceProperties
impl UnsafeUnpin for PhysicalDeviceProperties
impl UnwindSafe for PhysicalDeviceProperties
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