Struct vulkano::buffer::view::BufferView [−][src]
pub struct BufferView<B> where
B: BufferAccess, { /* fields omitted */ }
Represents a way for the GPU to interpret buffer data. See the documentation of the
view
module.
Implementations
impl<B> BufferView<B> where
B: BufferAccess,
[src]
impl<B> BufferView<B> where
B: BufferAccess,
[src]pub fn new<Px>(
buffer: B,
format: Format
) -> Result<BufferView<B>, BufferViewCreationError> where
B: TypedBufferAccess<Content = [Px]>,
Px: Pixel,
[src]
pub fn new<Px>(
buffer: B,
format: Format
) -> Result<BufferView<B>, BufferViewCreationError> where
B: TypedBufferAccess<Content = [Px]>,
Px: Pixel,
[src]Builds a new buffer view.
pub unsafe fn unchecked(
org_buffer: B,
format: Format
) -> Result<BufferView<B>, BufferViewCreationError> where
B: BufferAccess,
[src]
pub unsafe fn unchecked(
org_buffer: B,
format: Format
) -> Result<BufferView<B>, BufferViewCreationError> where
B: BufferAccess,
[src]Builds a new buffer view without checking that the format is correct.
pub fn uniform_texel_buffer(&self) -> bool
[src]
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]
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]
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<B> BufferViewRef for BufferView<B> where
B: BufferAccess,
[src]
impl<B> BufferViewRef for BufferView<B> where
B: BufferAccess,
[src]impl<B> Debug for BufferView<B> where
B: BufferAccess + Debug,
[src]
impl<B> Debug for BufferView<B> where
B: BufferAccess + Debug,
[src]impl<B> DeviceOwned for BufferView<B> where
B: BufferAccess,
[src]
impl<B> DeviceOwned for BufferView<B> where
B: BufferAccess,
[src]impl<B> Drop for BufferView<B> where
B: BufferAccess,
[src]
impl<B> Drop for BufferView<B> where
B: BufferAccess,
[src]impl<B> VulkanObject for BufferView<B> where
B: BufferAccess,
[src]
impl<B> VulkanObject for BufferView<B> where
B: BufferAccess,
[src]type Object = BufferView
type Object = BufferView
The type of the object.
const TYPE: ObjectType
[src]
const TYPE: ObjectType
[src]The ObjectType
of the internal Vulkan handle.
fn internal_object(&self) -> BufferView
[src]
fn internal_object(&self) -> BufferView
[src]Returns a reference to the object.
Auto Trait Implementations
impl<B> RefUnwindSafe for BufferView<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for BufferView<B> where
B: Send,
B: Send,
impl<B> Sync for BufferView<B> where
B: Sync,
B: Sync,
impl<B> Unpin for BufferView<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for BufferView<B> where
B: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.