pub struct PhysicalDeviceDescriptorBufferPropertiesEXT<'a> {Show 33 fields
pub combined_image_sampler_descriptor_single_array: Bool32,
pub bufferless_push_descriptors: Bool32,
pub allow_sampler_image_view_post_submit_creation: Bool32,
pub descriptor_buffer_offset_alignment: DeviceSize,
pub max_descriptor_buffer_bindings: u32,
pub max_resource_descriptor_buffer_bindings: u32,
pub max_sampler_descriptor_buffer_bindings: u32,
pub max_embedded_immutable_sampler_bindings: u32,
pub max_embedded_immutable_samplers: u32,
pub buffer_capture_replay_descriptor_data_size: usize,
pub image_capture_replay_descriptor_data_size: usize,
pub image_view_capture_replay_descriptor_data_size: usize,
pub sampler_capture_replay_descriptor_data_size: usize,
pub acceleration_structure_capture_replay_descriptor_data_size: usize,
pub sampler_descriptor_size: usize,
pub combined_image_sampler_descriptor_size: usize,
pub sampled_image_descriptor_size: usize,
pub storage_image_descriptor_size: usize,
pub uniform_texel_buffer_descriptor_size: usize,
pub robust_uniform_texel_buffer_descriptor_size: usize,
pub storage_texel_buffer_descriptor_size: usize,
pub robust_storage_texel_buffer_descriptor_size: usize,
pub uniform_buffer_descriptor_size: usize,
pub robust_uniform_buffer_descriptor_size: usize,
pub storage_buffer_descriptor_size: usize,
pub robust_storage_buffer_descriptor_size: usize,
pub input_attachment_descriptor_size: usize,
pub acceleration_structure_descriptor_size: usize,
pub max_sampler_descriptor_buffer_range: DeviceSize,
pub max_resource_descriptor_buffer_range: DeviceSize,
pub sampler_descriptor_buffer_address_space_size: DeviceSize,
pub resource_descriptor_buffer_address_space_size: DeviceSize,
pub descriptor_buffer_address_space_size: DeviceSize,
/* private fields */
}Expand description
Fields§
§combined_image_sampler_descriptor_single_array: Bool32§bufferless_push_descriptors: Bool32§allow_sampler_image_view_post_submit_creation: Bool32§descriptor_buffer_offset_alignment: DeviceSize§max_descriptor_buffer_bindings: u32§max_resource_descriptor_buffer_bindings: u32§max_sampler_descriptor_buffer_bindings: u32§max_embedded_immutable_sampler_bindings: u32§max_embedded_immutable_samplers: u32§buffer_capture_replay_descriptor_data_size: usize§image_capture_replay_descriptor_data_size: usize§image_view_capture_replay_descriptor_data_size: usize§sampler_capture_replay_descriptor_data_size: usize§acceleration_structure_capture_replay_descriptor_data_size: usize§sampler_descriptor_size: usize§combined_image_sampler_descriptor_size: usize§sampled_image_descriptor_size: usize§storage_image_descriptor_size: usize§uniform_texel_buffer_descriptor_size: usize§robust_uniform_texel_buffer_descriptor_size: usize§storage_texel_buffer_descriptor_size: usize§robust_storage_texel_buffer_descriptor_size: usize§uniform_buffer_descriptor_size: usize§robust_uniform_buffer_descriptor_size: usize§storage_buffer_descriptor_size: usize§robust_storage_buffer_descriptor_size: usize§input_attachment_descriptor_size: usize§acceleration_structure_descriptor_size: usize§max_sampler_descriptor_buffer_range: DeviceSize§max_resource_descriptor_buffer_range: DeviceSize§sampler_descriptor_buffer_address_space_size: DeviceSize§resource_descriptor_buffer_address_space_size: DeviceSize§descriptor_buffer_address_space_size: DeviceSizeImplementations§
Source§impl<'a> PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
impl<'a> PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
pub fn combined_image_sampler_descriptor_single_array( self, value: impl Into<Bool32>, ) -> Self
pub fn bufferless_push_descriptors(self, value: impl Into<Bool32>) -> Self
pub fn allow_sampler_image_view_post_submit_creation( self, value: impl Into<Bool32>, ) -> Self
pub fn descriptor_buffer_offset_alignment(self, value: DeviceSize) -> Self
pub fn max_descriptor_buffer_bindings(self, value: u32) -> Self
pub fn max_resource_descriptor_buffer_bindings(self, value: u32) -> Self
pub fn max_sampler_descriptor_buffer_bindings(self, value: u32) -> Self
pub fn max_embedded_immutable_sampler_bindings(self, value: u32) -> Self
pub fn max_embedded_immutable_samplers(self, value: u32) -> Self
pub fn buffer_capture_replay_descriptor_data_size(self, value: usize) -> Self
pub fn image_capture_replay_descriptor_data_size(self, value: usize) -> Self
pub fn image_view_capture_replay_descriptor_data_size( self, value: usize, ) -> Self
pub fn sampler_capture_replay_descriptor_data_size(self, value: usize) -> Self
pub fn acceleration_structure_capture_replay_descriptor_data_size( self, value: usize, ) -> Self
pub fn sampler_descriptor_size(self, value: usize) -> Self
pub fn combined_image_sampler_descriptor_size(self, value: usize) -> Self
pub fn sampled_image_descriptor_size(self, value: usize) -> Self
pub fn storage_image_descriptor_size(self, value: usize) -> Self
pub fn uniform_texel_buffer_descriptor_size(self, value: usize) -> Self
pub fn robust_uniform_texel_buffer_descriptor_size(self, value: usize) -> Self
pub fn storage_texel_buffer_descriptor_size(self, value: usize) -> Self
pub fn robust_storage_texel_buffer_descriptor_size(self, value: usize) -> Self
pub fn uniform_buffer_descriptor_size(self, value: usize) -> Self
pub fn robust_uniform_buffer_descriptor_size(self, value: usize) -> Self
pub fn storage_buffer_descriptor_size(self, value: usize) -> Self
pub fn robust_storage_buffer_descriptor_size(self, value: usize) -> Self
pub fn input_attachment_descriptor_size(self, value: usize) -> Self
pub fn acceleration_structure_descriptor_size(self, value: usize) -> Self
pub fn max_sampler_descriptor_buffer_range(self, value: DeviceSize) -> Self
pub fn max_resource_descriptor_buffer_range(self, value: DeviceSize) -> Self
pub fn sampler_descriptor_buffer_address_space_size( self, value: DeviceSize, ) -> Self
pub fn resource_descriptor_buffer_address_space_size( self, value: DeviceSize, ) -> Self
pub fn descriptor_buffer_address_space_size(self, value: DeviceSize) -> Self
pub fn push_next<T: ExtendingStructure<Self>>(self, ext: &'a mut T) -> Self
Trait Implementations§
Source§impl<'a> Default for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
Available on crate feature ext_descriptor_buffer only.
impl<'a> Default for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
Available on crate feature
ext_descriptor_buffer only.Source§impl<'a> ExtendableStructure for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
Available on crate feature ext_descriptor_buffer only.
impl<'a> ExtendableStructure for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
Available on crate feature
ext_descriptor_buffer only.const STRUCTURE_TYPE: StructureType = StructureType::PhysicalDeviceDescriptorBufferPropertiesEXT
Source§unsafe fn retrieve_next(&self) -> &Cell<*const Header>
unsafe fn retrieve_next(&self) -> &Cell<*const Header>
SAFETY: Same as ExtendableStructureBase::header
Source§unsafe fn push_next_unchecked<T: ExtendableStructure>(&self, ext: &T)
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>
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 PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
Available on crate feature ext_descriptor_buffer only.
impl<'a> ExtendableStructureBase for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
Available on crate feature
ext_descriptor_buffer only.impl<'a, 'b> ExtendingStructure<PhysicalDeviceProperties2<'b>> for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
Available on crate feature
ext_descriptor_buffer and (crate features ext_get_physical_device_properties2 or version_1_1) only.impl<'a> Send for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
Available on crate feature
ext_descriptor_buffer only.impl<'a> Sync for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
Available on crate feature
ext_descriptor_buffer only.Auto Trait Implementations§
impl<'a> !Freeze for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
impl<'a> !RefUnwindSafe for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
impl<'a> Unpin for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
impl<'a> !UnwindSafe for PhysicalDeviceDescriptorBufferPropertiesEXT<'a>
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
Source§impl<H> StructureChainOut<H> for Hwhere
H: ExtendableStructure,
impl<H> StructureChainOut<H> for Hwhere
H: ExtendableStructure,
Source§fn setup_uninit(chain: &mut MaybeUninit<H>)
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
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)
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