pub struct Buffer { /* private fields */ }
Expand description
RAII Vulkan Buffer.
Implementations§
source§impl Buffer
impl Buffer
sourcepub unsafe fn new(
render_device: Arc<RenderDevice>,
create_info: &BufferCreateInfo,
memory_property_flags: MemoryPropertyFlags
) -> Result<Self, GraphicsError>
pub unsafe fn new( render_device: Arc<RenderDevice>, create_info: &BufferCreateInfo, memory_property_flags: MemoryPropertyFlags ) -> Result<Self, GraphicsError>
Create a new Vulkan descriptor pool.
Safety
Unsafe because:
- command pools must be destroyed before the Vulkan device is dropped.
sourcepub fn set_debug_name(&self, name: impl Into<String>)
pub fn set_debug_name(&self, name: impl Into<String>)
Set the name which shows up in Vulkan debug logs for this resource.
sourcepub fn allocation(&self) -> &Allocation
pub fn allocation(&self) -> &Allocation
Get the backing memory allocation for the Buffer.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Buffer
impl !Send for Buffer
impl !Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
Blanket Implementations§
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.