pub struct ExternalBufferInfo {
pub flags: BufferCreateFlags,
pub usage: BufferUsage,
pub handle_type: ExternalMemoryHandleType,
pub _ne: NonExhaustive,
}Expand description
The buffer configuration to query in PhysicalDevice::external_buffer_properties.
Fields§
§flags: BufferCreateFlagsThe flags that will be used.
usage: BufferUsageThe usage that the buffer will have.
handle_type: ExternalMemoryHandleTypeThe external handle type that will be used with the buffer.
_ne: NonExhaustiveImplementations§
Source§impl ExternalBufferInfo
impl ExternalBufferInfo
Sourcepub fn handle_type(handle_type: ExternalMemoryHandleType) -> Self
pub fn handle_type(handle_type: ExternalMemoryHandleType) -> Self
Returns an ExternalBufferInfo with the specified handle_type.
Trait Implementations§
Source§impl Clone for ExternalBufferInfo
impl Clone for ExternalBufferInfo
Source§fn clone(&self) -> ExternalBufferInfo
fn clone(&self) -> ExternalBufferInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExternalBufferInfo
impl Debug for ExternalBufferInfo
Source§impl Hash for ExternalBufferInfo
impl Hash for ExternalBufferInfo
Source§impl PartialEq for ExternalBufferInfo
impl PartialEq for ExternalBufferInfo
impl Eq for ExternalBufferInfo
impl StructuralPartialEq for ExternalBufferInfo
Auto Trait Implementations§
impl Freeze for ExternalBufferInfo
impl RefUnwindSafe for ExternalBufferInfo
impl Send for ExternalBufferInfo
impl Sync for ExternalBufferInfo
impl Unpin for ExternalBufferInfo
impl UnsafeUnpin for ExternalBufferInfo
impl UnwindSafe for ExternalBufferInfo
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