pub struct LayerSettingEXT<'a> {
pub p_layer_name: *const c_char,
pub p_setting_name: *const c_char,
pub type: LayerSettingTypeEXT,
pub value_count: u32,
pub p_values: *const c_void,
/* private fields */
}Expand description
Native structure VkLayerSettingEXT.
Fields§
§p_layer_name: *const c_charNative field pLayerName.
p_setting_name: *const c_charNative field pSettingName.
type: LayerSettingTypeEXTNative field type.
value_count: u32Native field valueCount.
p_values: *const c_voidNative field pValues.
Implementations§
Source§impl<'a> LayerSettingEXT<'a>
impl<'a> LayerSettingEXT<'a>
Sourcepub fn set_layer_name(self, value: &'a CStr) -> Self
pub fn set_layer_name(self, value: &'a CStr) -> Self
Set native field pLayerName without native effects.
Sourcepub fn set_setting_name(self, value: &'a CStr) -> Self
pub fn set_setting_name(self, value: &'a CStr) -> Self
Set native field pSettingName without native effects.
Sourcepub fn set_type(self, value: LayerSettingTypeEXT) -> Self
pub fn set_type(self, value: LayerSettingTypeEXT) -> Self
Set native field type without native effects.
Sourcepub fn set_value_count(self, value: u32) -> Self
pub fn set_value_count(self, value: u32) -> Self
Set native count valueCount directly without checking associated pointer extents.
Use the borrowed array helpers to derive matching storage and counts together.
Direct count edits support null-query/dynamic-state paths and remain a
native-call validity obligation, including after earlier borrowed setters.
Sourcepub unsafe fn set_values(self, value: *const c_void) -> Self
pub unsafe fn set_values(self, value: *const c_void) -> Self
Set native pointer pValues explicitly. No borrow or extent is inferred.
§Safety
The caller must establish pointee validity, extent, alignment, aliasing and the full native retention lifetime before using this record in a native call. Callback, external-object and nested-pointer contracts remain caller obligations.
Sourcepub fn set_values_bool32(
self,
value: &'a [u32],
) -> Result<Self, ConstructionError>
pub fn set_values_bool32( self, value: &'a [u32], ) -> Result<Self, ConstructionError>
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
§Errors
Returns a construction error if the element count exceeds u32.
Sourcepub fn set_values_int32(
self,
value: &'a [i32],
) -> Result<Self, ConstructionError>
pub fn set_values_int32( self, value: &'a [i32], ) -> Result<Self, ConstructionError>
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
§Errors
Returns a construction error if the element count exceeds u32.
Sourcepub fn set_values_int64(
self,
value: &'a [i64],
) -> Result<Self, ConstructionError>
pub fn set_values_int64( self, value: &'a [i64], ) -> Result<Self, ConstructionError>
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
§Errors
Returns a construction error if the element count exceeds u32.
Sourcepub fn set_values_uint32(
self,
value: &'a [u32],
) -> Result<Self, ConstructionError>
pub fn set_values_uint32( self, value: &'a [u32], ) -> Result<Self, ConstructionError>
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
§Errors
Returns a construction error if the element count exceeds u32.
Sourcepub fn set_values_uint64(
self,
value: &'a [u64],
) -> Result<Self, ConstructionError>
pub fn set_values_uint64( self, value: &'a [u64], ) -> Result<Self, ConstructionError>
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
§Errors
Returns a construction error if the element count exceeds u32.
Sourcepub fn set_values_float32(
self,
value: &'a [f32],
) -> Result<Self, ConstructionError>
pub fn set_values_float32( self, value: &'a [f32], ) -> Result<Self, ConstructionError>
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
§Errors
Returns a construction error if the element count exceeds u32.
Sourcepub fn set_values_float64(
self,
value: &'a [f64],
) -> Result<Self, ConstructionError>
pub fn set_values_float64( self, value: &'a [f64], ) -> Result<Self, ConstructionError>
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
§Errors
Returns a construction error if the element count exceeds u32.
Sourcepub fn set_values_strings(
self,
value: &'a [*const c_char],
) -> Result<Self, ConstructionError>
pub fn set_values_strings( self, value: &'a [*const c_char], ) -> Result<Self, ConstructionError>
Borrow typed layer values and set their native type and element count. For strings the borrow covers the pointer table, not the strings it names.
§Errors
Returns a construction error if the element count exceeds u32.