pub struct BufferView<B>where
B: BufferAccess + ?Sized,{ /* private fields */ }
Expand description
Represents a way for the GPU to interpret buffer data. See the documentation of the
view
module.
Implementations
sourceimpl<B> BufferView<B>where
B: BufferAccess + ?Sized,
impl<B> BufferView<B>where
B: BufferAccess + ?Sized,
sourcepub fn new(
buffer: Arc<B>,
create_info: BufferViewCreateInfo
) -> Result<Arc<BufferView<B>>, BufferViewCreationError>
pub fn new(
buffer: Arc<B>,
create_info: BufferViewCreateInfo
) -> Result<Arc<BufferView<B>>, BufferViewCreationError>
Creates a new BufferView
.
Trait Implementations
sourceimpl<B> BufferViewAbstract for BufferView<B>where
B: BufferAccess + ?Sized + 'static,
Arc<B>: BufferAccessObject,
impl<B> BufferViewAbstract for BufferView<B>where
B: BufferAccess + ?Sized + 'static,
Arc<B>: BufferAccessObject,
sourcefn buffer(&self) -> Arc<dyn BufferAccess>
fn buffer(&self) -> Arc<dyn BufferAccess>
Returns the wrapped buffer that this buffer view was created from.
sourcefn format_features(&self) -> &FormatFeatures
fn format_features(&self) -> &FormatFeatures
Returns the features supported by the buffer view’s format.
sourcefn range(&self) -> Range<DeviceSize>
fn range(&self) -> Range<DeviceSize>
Returns the byte range of the wrapped buffer that this view exposes.
sourceimpl<B: Debug> Debug for BufferView<B>where
B: BufferAccess + ?Sized,
impl<B: Debug> Debug for BufferView<B>where
B: BufferAccess + ?Sized,
sourceimpl<B> DeviceOwned for BufferView<B>where
B: BufferAccess + ?Sized,
impl<B> DeviceOwned for BufferView<B>where
B: BufferAccess + ?Sized,
sourceimpl<B> Drop for BufferView<B>where
B: BufferAccess + ?Sized,
impl<B> Drop for BufferView<B>where
B: BufferAccess + ?Sized,
sourceimpl<B> Hash for BufferView<B>where
B: BufferAccess + ?Sized,
impl<B> Hash for BufferView<B>where
B: BufferAccess + ?Sized,
sourceimpl<B> PartialEq<BufferView<B>> for BufferView<B>where
B: BufferAccess + ?Sized,
impl<B> PartialEq<BufferView<B>> for BufferView<B>where
B: BufferAccess + ?Sized,
sourceimpl<B> VulkanObject for BufferView<B>where
B: BufferAccess + ?Sized,
impl<B> VulkanObject for BufferView<B>where
B: BufferAccess + ?Sized,
type Object = BufferView
type Object = BufferView
The type of the object.
sourcefn internal_object(&self) -> BufferView
fn internal_object(&self) -> BufferView
Returns a reference to the object.
impl<B> Eq for BufferView<B>where
B: BufferAccess + ?Sized,
Auto Trait Implementations
impl<B: ?Sized> RefUnwindSafe for BufferView<B>where
B: RefUnwindSafe,
impl<B: ?Sized> Send for BufferView<B>
impl<B: ?Sized> Sync for BufferView<B>
impl<B: ?Sized> Unpin for BufferView<B>
impl<B: ?Sized> UnwindSafe for BufferView<B>where
B: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more