PhysicalDevicePortabilitySubsetFeaturesKHR

Struct PhysicalDevicePortabilitySubsetFeaturesKHR 

Source
pub struct PhysicalDevicePortabilitySubsetFeaturesKHR<'a> {
Show 15 fields pub constant_alpha_color_blend_factors: Bool32, pub events: Bool32, pub image_view_format_reinterpretation: Bool32, pub image_view_format_swizzle: Bool32, pub image_view2_don3_dimage: Bool32, pub multisample_array_image: Bool32, pub mutable_comparison_samplers: Bool32, pub point_polygons: Bool32, pub sampler_mip_lod_bias: Bool32, pub separate_stencil_mask_ref: Bool32, pub shader_sample_rate_interpolation_functions: Bool32, pub tessellation_isolines: Bool32, pub tessellation_point_mode: Bool32, pub triangle_fans: Bool32, pub vertex_attribute_access_beyond_stride: Bool32, /* private fields */
}
Expand description

Fields§

§constant_alpha_color_blend_factors: Bool32§events: Bool32§image_view_format_reinterpretation: Bool32§image_view_format_swizzle: Bool32§image_view2_don3_dimage: Bool32§multisample_array_image: Bool32§mutable_comparison_samplers: Bool32§point_polygons: Bool32§sampler_mip_lod_bias: Bool32§separate_stencil_mask_ref: Bool32§shader_sample_rate_interpolation_functions: Bool32§tessellation_isolines: Bool32§tessellation_point_mode: Bool32§triangle_fans: Bool32§vertex_attribute_access_beyond_stride: Bool32

Implementations§

Source§

impl<'a> PhysicalDevicePortabilitySubsetFeaturesKHR<'a>

Source

pub fn constant_alpha_color_blend_factors( self, value: impl Into<Bool32>, ) -> Self

Source

pub fn events(self, value: impl Into<Bool32>) -> Self

Source

pub fn image_view_format_reinterpretation( self, value: impl Into<Bool32>, ) -> Self

Source

pub fn image_view_format_swizzle(self, value: impl Into<Bool32>) -> Self

Source

pub fn image_view2_don3_dimage(self, value: impl Into<Bool32>) -> Self

Source

pub fn multisample_array_image(self, value: impl Into<Bool32>) -> Self

Source

pub fn mutable_comparison_samplers(self, value: impl Into<Bool32>) -> Self

Source

pub fn point_polygons(self, value: impl Into<Bool32>) -> Self

Source

pub fn sampler_mip_lod_bias(self, value: impl Into<Bool32>) -> Self

Source

pub fn separate_stencil_mask_ref(self, value: impl Into<Bool32>) -> Self

Source

pub fn shader_sample_rate_interpolation_functions( self, value: impl Into<Bool32>, ) -> Self

Source

pub fn tessellation_isolines(self, value: impl Into<Bool32>) -> Self

Source

pub fn tessellation_point_mode(self, value: impl Into<Bool32>) -> Self

Source

pub fn triangle_fans(self, value: impl Into<Bool32>) -> Self

Source

pub fn vertex_attribute_access_beyond_stride( self, value: impl Into<Bool32>, ) -> Self

Source

pub fn push_next<T: ExtendingStructure<Self>>(self, ext: &'a mut T) -> Self

Trait Implementations§

Source§

impl<'a> Default for PhysicalDevicePortabilitySubsetFeaturesKHR<'a>

Source§

fn default() -> Self

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

impl<'a> ExtendableStructure for PhysicalDevicePortabilitySubsetFeaturesKHR<'a>

Source§

const STRUCTURE_TYPE: StructureType = StructureType::PhysicalDevicePortabilitySubsetFeaturesKHR

Source§

unsafe fn retrieve_next(&self) -> &Cell<*const Header>

Source§

unsafe fn push_next_unchecked<T: ExtendableStructure>(&self, ext: &T)

Assuming the current structure chain is the following: Self -> Ext1 -> Ext2 -> Ext3 calling this function with Ext4 will result in: Self -> Ext4 -> Ext1 -> Ext2 -> Ext3 This function will never cause cycles in the structure chain This function is unsafe because it discards the lifetime (ExtendableStructure does not have a lifetime parameter) Also it does not check that T is a valid extension to be added to Self and only requires references (and not mutable references)
Source§

fn new_uninit() -> MaybeUninit<Self>

Return a unitialized structure except the structure type being correctly set and the p_next pointer being set to null
Source§

impl<'a> ExtendableStructureBase for PhysicalDevicePortabilitySubsetFeaturesKHR<'a>

Source§

impl<'a, 'b> ExtendingStructure<DeviceCreateInfo<'b>> for PhysicalDevicePortabilitySubsetFeaturesKHR<'a>

Source§

impl<'a, 'b> ExtendingStructure<PhysicalDeviceFeatures2<'b>> for PhysicalDevicePortabilitySubsetFeaturesKHR<'a>

Available on crate features ext_get_physical_device_properties2 or version_1_1 only.
Source§

impl<'a> Send for PhysicalDevicePortabilitySubsetFeaturesKHR<'a>

Source§

impl<'a> Sync for PhysicalDevicePortabilitySubsetFeaturesKHR<'a>

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> 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<H> StructureChainOut<H> for H

Source§

fn setup_uninit(chain: &mut MaybeUninit<H>)

Setup an uninitialized structure chain After this call, for the structure chain to be initialized, each structure field (with the exception of the structure type and the p_next pointer) must be initialized (usually by calling the appropriate vulkan command) The structure type and p_next pointer of each struct are set so that a vulkan commands sees a pointer to the head as a valid chain containing all structures Calling setup_uninit should be enough to then call a vulkan command filling this structure chain, moreover after the call to this vulkan command, the whole structure chain should be considered initialized
Source§

fn get_uninit_head_ptr(chain: *mut H) -> *mut H

Return a mutable pointer to the head structure, which can then be passed to vulkan commands
Source§

fn setup_cleanup(_: *mut H)

Function to call after a vulkan function initialized this structure to make sure there is no dangling pointer or anything which could cause undefined behavior
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.
Source§

impl<T> Alias<T> for T

Source§

impl<T> ExtendingStructure<T> for T