[][src]Struct nannou::vk::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 as StrongStorage>::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> DeviceOwned for BufferView<F, B> where
    B: BufferAccess
[src]

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

type BufferAccess = B

type Format = F

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

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

type Object = u64

The type of the object.

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> Sync for BufferView<F, B> where
    B: Sync,
    F: Sync

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Content for T[src]

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> SafeBorrow<T> for T[src]

impl<T> Erased for T

impl<S> FromSample<S> for S[src]

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.