Struct VkPhysicalDeviceFeatures

Source
pub struct VkPhysicalDeviceFeatures {
Show 55 fields pub robust_buffer_access: bool, pub full_draw_index_uint_32: bool, pub image_cube_array: bool, pub independent_blend: bool, pub geometry_shader: bool, pub tessellation_shader: bool, pub sample_rate_shading: bool, pub dual_src_blend: bool, pub logic_op: bool, pub multi_draw_indirect: bool, pub draw_indirect_first_instance: bool, pub depth_clamp: bool, pub depth_bias_clamp: bool, pub fill_mode_non_solid: bool, pub depth_bounds: bool, pub wide_lines: bool, pub large_points: bool, pub alpha_to_one: bool, pub multi_viewport: bool, pub sampler_anisotropy: bool, pub texture_compression_etc_2: bool, pub texture_compression_astc_ldr: bool, pub texture_compression_bc: bool, pub occlusion_query_precise: bool, pub pipeline_statistics_query: bool, pub vertex_pipeline_stores_and_atomics: bool, pub fragment_stores_and_atomics: bool, pub shader_tessellation_and_geometry_point_size: bool, pub shader_image_gather_extended: bool, pub shader_storage_image_extended_formats: bool, pub shader_storage_image_multisample: bool, pub shader_storage_image_read_without_format: bool, pub shader_storage_image_write_without_format: bool, pub shader_uniform_buffer_array_dynamic_indexing: bool, pub shader_sampled_image_array_dynamic_indexing: bool, pub shader_storage_buffer_array_dynamic_indexing: bool, pub shader_storage_image_array_dynamic_indexing: bool, pub shader_clip_distance: bool, pub shader_cull_distance: bool, pub shader_float_64: bool, pub shader_int_64: bool, pub shader_int_16: bool, pub shader_resource_residency: bool, pub shader_resource_min_lod: bool, pub sparse_binding: bool, pub sparse_residency_buffer: bool, pub sparse_residency_image_2d: bool, pub sparse_residency_image_3d: bool, pub sparse_residency_2_samples: bool, pub sparse_residency_4_samples: bool, pub sparse_residency_8_samples: bool, pub sparse_residency_16_samples: bool, pub sparse_residency_aliased: bool, pub variable_multisample_rate: bool, pub inherited_queries: bool,
}
Expand description

Wrapper for VkPhysicalDeviceFeatures.

Use the macro VkPhysicalDeviceFeatures! as an alternative method to create a structure. For example, these two snippets return the same value:

VkPhysicalDeviceFeatures!(robust_buffer_access, full_draw_index_uint_32)
VkPhysicalDeviceFeatures {
    robust_buffer_access: true,
    full_draw_index_uint_32: true,
    ..VkPhysicalDeviceFeatures::none()
}

Fields§

§robust_buffer_access: bool§full_draw_index_uint_32: bool§image_cube_array: bool§independent_blend: bool§geometry_shader: bool§tessellation_shader: bool§sample_rate_shading: bool§dual_src_blend: bool§logic_op: bool§multi_draw_indirect: bool§draw_indirect_first_instance: bool§depth_clamp: bool§depth_bias_clamp: bool§fill_mode_non_solid: bool§depth_bounds: bool§wide_lines: bool§large_points: bool§alpha_to_one: bool§multi_viewport: bool§sampler_anisotropy: bool§texture_compression_etc_2: bool§texture_compression_astc_ldr: bool§texture_compression_bc: bool§occlusion_query_precise: bool§pipeline_statistics_query: bool§vertex_pipeline_stores_and_atomics: bool§fragment_stores_and_atomics: bool§shader_tessellation_and_geometry_point_size: bool§shader_image_gather_extended: bool§shader_storage_image_extended_formats: bool§shader_storage_image_multisample: bool§shader_storage_image_read_without_format: bool§shader_storage_image_write_without_format: bool§shader_uniform_buffer_array_dynamic_indexing: bool§shader_sampled_image_array_dynamic_indexing: bool§shader_storage_buffer_array_dynamic_indexing: bool§shader_storage_image_array_dynamic_indexing: bool§shader_clip_distance: bool§shader_cull_distance: bool§shader_float_64: bool§shader_int_64: bool§shader_int_16: bool§shader_resource_residency: bool§shader_resource_min_lod: bool§sparse_binding: bool§sparse_residency_buffer: bool§sparse_residency_image_2d: bool§sparse_residency_image_3d: bool§sparse_residency_2_samples: bool§sparse_residency_4_samples: bool§sparse_residency_8_samples: bool§sparse_residency_16_samples: bool§sparse_residency_aliased: bool§variable_multisample_rate: bool§inherited_queries: bool

Implementations§

Source§

impl VkPhysicalDeviceFeatures

Source

pub fn none() -> Self

Return a structure with all flags to false.

Source

pub fn all() -> Self

Return a structure with all flags to true.

Source

pub fn to_u64(&self) -> u64

Source

pub fn from_u64(value: u64) -> Self

Trait Implementations§

Source§

impl Clone for VkPhysicalDeviceFeatures

Source§

fn clone(&self) -> VkPhysicalDeviceFeatures

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VkPhysicalDeviceFeatures

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for VkPhysicalDeviceFeatures

Source§

fn default() -> VkPhysicalDeviceFeatures

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.