[−][src]Struct vulkano::buffer::view::BufferView
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,
pub fn new(
buffer: B,
format: F
) -> Result<BufferView<F, B>, BufferViewCreationError> where
B: TypedBufferAccess<Content = [F::Pixel]>,
F: StrongStorage + 'static,
[src]
buffer: B,
format: F
) -> Result<BufferView<F, B>, BufferViewCreationError> where
B: TypedBufferAccess<Content = [F::Pixel]>,
F: StrongStorage + 'static,
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]
org_buffer: B,
format: F
) -> Result<BufferView<F, B>, BufferViewCreationError> where
B: BufferAccess,
F: FormatDesc + 'static,
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]
B: BufferAccess,
impl<F, B> DeviceOwned for BufferView<F, B> where
B: BufferAccess,
[src]
B: BufferAccess,
impl<F, B> VulkanObject for BufferView<F, B> where
B: BufferAccess,
[src]
B: BufferAccess,
type Object = BufferView
The type of the object.
const TYPE: DebugReportObjectTypeEXT
[src]
fn internal_object(&self) -> BufferView
[src]
impl<F, B> Drop 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,
Auto Trait Implementations
impl<F, B> Send for BufferView<F, B> where
B: Send,
F: Send,
B: Send,
F: Send,
impl<F, B> Unpin for BufferView<F, B> where
B: Unpin,
F: Unpin,
B: Unpin,
F: Unpin,
impl<F, B> Sync for BufferView<F, B> where
B: Sync,
F: Sync,
B: Sync,
F: Sync,
impl<F, B> UnwindSafe for BufferView<F, B> where
B: UnwindSafe,
F: UnwindSafe,
B: UnwindSafe,
F: UnwindSafe,
impl<F, B> RefUnwindSafe for BufferView<F, B> where
B: RefUnwindSafe,
F: RefUnwindSafe,
B: RefUnwindSafe,
F: RefUnwindSafe,
Blanket Implementations
impl<T, F, B> BufferViewRef for T where
B: BufferAccess,
T: SafeDeref<Target = BufferView<F, B>>,
[src]
B: BufferAccess,
T: SafeDeref<Target = BufferView<F, B>>,
impl<T> DeviceOwned for T where
T: Deref,
<T as Deref>::Target: DeviceOwned,
[src]
T: Deref,
<T as Deref>::Target: DeviceOwned,
impl<T> Content for T
[src]
fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,