[][src]Struct vulkano::buffer::view::BufferView

pub struct BufferView<F, B> where
    B: BufferAccess
{ /* fields omitted */ }

Represents a way for the GPU to interpret buffer data. See the documentation of the view module.

Methods

impl<F, B> BufferView<F, B> where
    B: BufferAccess
[src]

pub fn new(
    buffer: B,
    format: F
) -> Result<BufferView<F, B>, BufferViewCreationError> where
    B: TypedBufferAccess<Content = [F::Pixel]>,
    F: StrongStorage + 'static, 
[src]

Builds a new buffer view.

pub unsafe fn unchecked(
    org_buffer: B,
    format: F
) -> Result<BufferView<F, B>, BufferViewCreationError> where
    B: BufferAccess,
    F: FormatDesc + 'static, 
[src]

Builds a new buffer view without checking that the format is correct.

pub fn buffer(&self) -> &B[src]

Returns the buffer associated to this view.

pub fn uniform_texel_buffer(&self) -> bool[src]

Returns true if the buffer view can be used as a uniform texel buffer.

pub fn storage_texel_buffer(&self) -> bool[src]

Returns true if the buffer view can be used as a storage texel buffer.

pub fn storage_texel_buffer_atomic(&self) -> bool[src]

Returns true if the buffer view can be used as a storage texel buffer with atomic accesses.

Trait Implementations

impl<F, B> BufferViewRef for BufferView<F, B> where
    B: BufferAccess
[src]

type BufferAccess = B

type Format = F

impl<F, B> DeviceOwned for BufferView<F, B> where
    B: BufferAccess
[src]

impl<F, B> VulkanObject for BufferView<F, B> where
    B: BufferAccess
[src]

type Object = BufferView

The type of the object.

impl<F, B> Drop for BufferView<F, B> where
    B: BufferAccess
[src]

impl<F, B> Debug for BufferView<F, B> where
    B: BufferAccess + Debug
[src]

Auto Trait Implementations

impl<F, B> Send for BufferView<F, B> where
    B: Send,
    F: Send

impl<F, B> Unpin for BufferView<F, B> where
    B: Unpin,
    F: Unpin

impl<F, B> Sync for BufferView<F, B> where
    B: Sync,
    F: Sync

impl<F, B> UnwindSafe for BufferView<F, B> where
    B: UnwindSafe,
    F: UnwindSafe

impl<F, B> RefUnwindSafe for BufferView<F, B> where
    B: RefUnwindSafe,
    F: RefUnwindSafe

Blanket Implementations

impl<T, F, B> BufferViewRef for T where
    B: BufferAccess,
    T: SafeDeref<Target = BufferView<F, B>>, 
[src]

type BufferAccess = B

type Format = F

impl<T> DeviceOwned for T where
    T: Deref,
    <T as Deref>::Target: DeviceOwned
[src]

impl<T> Content for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]