pub struct MemoryRequirements {
pub layout: DeviceLayout,
pub memory_type_bits: u32,
pub prefers_dedicated_allocation: bool,
pub requires_dedicated_allocation: bool,
}Expand description
Represents requirements expressed by the Vulkan implementation when it comes to binding memory to a resource.
Fields§
§layout: DeviceLayoutMemory layout required for the resource.
memory_type_bits: u32Indicates which memory types can be used. Each bit that is set to 1 means that the memory type whose index is the same as the position of the bit can be used.
prefers_dedicated_allocation: boolWhether implementation prefers to use dedicated allocations (in other words, allocate
a whole block of memory dedicated to this resource alone).
This will be false if the device API version is less than 1.1 and the
khr_get_memory_requirements2
extension is not enabled on the device.
requires_dedicated_allocation: boolWhether implementation requires the use of a dedicated allocation (in other words, allocate
a whole block of memory dedicated to this resource alone).
This will be false if the device API version is less than 1.1 and the
khr_get_memory_requirements2
extension is not enabled on the device.
Trait Implementations§
Source§impl Clone for MemoryRequirements
impl Clone for MemoryRequirements
Source§fn clone(&self) -> MemoryRequirements
fn clone(&self) -> MemoryRequirements
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more