Struct BufferViewObject

Source
pub struct BufferViewObject<Buffer: DeviceChildHandle>(/* private fields */);
Expand description

Opaque handle to a buffer view object

Implementations§

Source§

impl<Buffer: DeviceChildHandle> BufferViewObject<Buffer>

Source

pub const unsafe fn manage(handle: VkBufferView, parent: Buffer) -> Self

Constructs from raw values

§Safety

the resource must be created from the parent

Source

pub const fn unmanage(self) -> (VkBufferView, Buffer)

Purges internal values (Drop will not be called for this resource)

Source§

impl<Buffer: DeviceChildHandle + Clone> BufferViewObject<&Buffer>

Source

pub fn clone_parent(self) -> BufferViewObject<Buffer>

Owning parent object by cloning it.

Source§

impl<Buffer: DeviceChild> BufferViewObject<Buffer>

Source

pub fn new(buffer: Buffer, info: &BufferViewCreateInfo<'_>) -> Result<Self>

Create a new buffer view object

§Failure

On failure, this command returns

Trait Implementations§

Source§

impl<Buffer: DeviceChildHandle> Deref for BufferViewObject<Buffer>

Source§

type Target = Buffer

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Buffer

Dereferences the value.
Source§

impl<Buffer: DeviceChild> DeviceChild for BufferViewObject<Buffer>

Source§

type ConcreteDevice = <Buffer as DeviceChild>::ConcreteDevice

A concrete type of the parent device object.
Source§

fn device(&self) -> &Self::ConcreteDevice

Retrieve a reference to a device object that creates this object
Source§

impl<Buffer: DeviceChildHandle> DeviceChildHandle for BufferViewObject<Buffer>

Source§

fn device_handle(&self) -> VkDevice

Retrieve a reference to a device handle that creates this objecs
Source§

impl<Buffer: DeviceChildHandle> Drop for BufferViewObject<Buffer>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<Buffer: DeviceChildHandle> VkHandle for BufferViewObject<Buffer>

Source§

type Handle = VkBufferView

Source§

fn native_ptr(&self) -> Self::Handle

Retrieve an underlying handle
Source§

fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>

Source§

impl<Buffer: DeviceChildHandle> VkHandleMut for BufferViewObject<Buffer>

Source§

fn native_ptr_mut(&mut self) -> Self::Handle

Retrieve an underlying mutable handle
Source§

fn as_transparent_ref_mut(&mut self) -> VkHandleRefMut<'_, Self::Handle>

Source§

impl<Buffer: DeviceChildHandle> VkObject for BufferViewObject<Buffer>

Source§

const TYPE: VkObjectType = 13i32

Source§

impl<Buffer: DeviceChildHandle> BufferView for BufferViewObject<Buffer>

Source§

impl<Buffer: DeviceChildHandle + Send> Send for BufferViewObject<Buffer>

Source§

impl<Buffer: DeviceChildHandle + Sync> Sync for BufferViewObject<Buffer>

Auto Trait Implementations§

§

impl<Buffer> Freeze for BufferViewObject<Buffer>
where Buffer: Freeze,

§

impl<Buffer> RefUnwindSafe for BufferViewObject<Buffer>
where Buffer: RefUnwindSafe,

§

impl<Buffer> Unpin for BufferViewObject<Buffer>
where Buffer: Unpin,

§

impl<Buffer> UnwindSafe for BufferViewObject<Buffer>
where Buffer: UnwindSafe,

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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> VkHandleExt for T
where T: VkHandle,

Source§

fn eq_handle(&self, other: &Self) -> bool
where Self::Handle: VkRawHandle,

Checks the equality between vulkan objects by their handle value.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more