Struct vulkano::buffer::view::BufferView
[−]
[src]
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]
B: BufferAccess,
fn new<P>(
buffer: P,
format: F
) -> Result<Arc<BufferView<F, B>>, BufferViewCreationError> where
P: TypedBuffer<Content = [F::Pixel]> + Buffer<Access = B>,
B: BufferAccess,
F: StrongStorage + 'static,
buffer: P,
format: F
) -> Result<Arc<BufferView<F, B>>, BufferViewCreationError> where
P: TypedBuffer<Content = [F::Pixel]> + Buffer<Access = B>,
B: BufferAccess,
F: StrongStorage + 'static,
Builds a new buffer view.
fn from_access(
buffer: B,
format: F
) -> Result<Arc<BufferView<F, B>>, BufferViewCreationError> where
B: TypedBufferAccess<Content = [F::Pixel]>,
F: StrongStorage + 'static,
buffer: B,
format: F
) -> Result<Arc<BufferView<F, B>>, BufferViewCreationError> where
B: TypedBufferAccess<Content = [F::Pixel]>,
F: StrongStorage + 'static,
Builds a new buffer view from a BufferAccess
object.
unsafe fn unchecked(
org_buffer: B,
format: F
) -> Result<Arc<BufferView<F, B>>, BufferViewCreationError> where
B: BufferAccess,
F: FormatDesc + 'static,
org_buffer: B,
format: F
) -> Result<Arc<BufferView<F, B>>, BufferViewCreationError> where
B: BufferAccess,
F: FormatDesc + 'static,
Builds a new buffer view without checking that the format is correct.
fn buffer(&self) -> &B
Returns the buffer associated to this view.
fn uniform_texel_buffer(&self) -> bool
Returns true if the buffer view can be used as a uniform texel buffer.
fn storage_texel_buffer(&self) -> bool
Returns true if the buffer view can be used as a storage texel buffer.
fn storage_texel_buffer_atomic(&self) -> bool
Returns true if the buffer view can be used as a storage texel buffer with atomic accesses.
Trait Implementations
impl<F, B> VulkanObject for BufferView<F, B> where
B: BufferAccess,
[src]
B: BufferAccess,
type Object = BufferView
The type of the object.
fn internal_object(&self) -> BufferView
Returns a reference to the object.
impl<F, B> DeviceOwned for BufferView<F, B> where
B: BufferAccess,
[src]
B: BufferAccess,
impl<F, B> Debug for BufferView<F, B> where
B: BufferAccess + Debug,
[src]
B: BufferAccess + Debug,
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl<F, B> Drop for BufferView<F, B> where
B: BufferAccess,
[src]
B: BufferAccess,
impl<F, B> BufferViewRef for BufferView<F, B> where
B: BufferAccess,
[src]
B: BufferAccess,