[−][src]Struct basalt::misc::tmp_image_access::TmpImageViewAccess
An abstraction on ImageViewAccess to provide a lease like function. This simply wraps ImageViewAccess and provides a barrier that will be used when the wrapper drops. The provided barrier should have wait() called before dropping.
Methods
impl TmpImageViewAccess
[src]
pub fn new(from: Arc<dyn ImageViewAccess + Send + Sync>) -> (Self, Arc<Barrier>)
[src]
pub fn new_abool(
from: Arc<dyn ImageViewAccess + Send + Sync>
) -> (Self, Arc<AtomicBool>)
[src]
from: Arc<dyn ImageViewAccess + Send + Sync>
) -> (Self, Arc<AtomicBool>)
Trait Implementations
impl Drop for TmpImageViewAccess
[src]
impl ImageViewAccess for TmpImageViewAccess
[src]
fn parent(&self) -> &dyn ImageAccess
[src]
fn dimensions(&self) -> Dimensions
[src]
fn inner(&self) -> &UnsafeImageView
[src]
fn descriptor_set_storage_image_layout(&self) -> ImageLayout
[src]
fn descriptor_set_combined_image_sampler_layout(&self) -> ImageLayout
[src]
fn descriptor_set_sampled_image_layout(&self) -> ImageLayout
[src]
fn descriptor_set_input_attachment_layout(&self) -> ImageLayout
[src]
fn identity_swizzle(&self) -> bool
[src]
fn format(&self) -> Format
[src]
Returns the format of this view. This can be different from the parent's format.
fn samples(&self) -> u32
[src]
fn can_be_sampled(&self, _sampler: &Sampler) -> bool
[src]
Returns true if the given sampler can be used with this image view. Read more
Auto Trait Implementations
impl Sync for TmpImageViewAccess
impl Send for TmpImageViewAccess
impl Unpin for TmpImageViewAccess
impl !RefUnwindSafe for TmpImageViewAccess
impl !UnwindSafe for TmpImageViewAccess
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,
impl<T> Erased for T
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> ImageViewAccess for T where
T: SafeDeref,
<T as Deref>::Target: ImageViewAccess,
[src]
T: SafeDeref,
<T as Deref>::Target: ImageViewAccess,
fn parent(&self) -> &dyn ImageAccess
[src]
fn inner(&self) -> &UnsafeImageView
[src]
fn dimensions(&self) -> Dimensions
[src]
fn descriptor_set_storage_image_layout(&self) -> ImageLayout
[src]
fn descriptor_set_combined_image_sampler_layout(&self) -> ImageLayout
[src]
fn descriptor_set_sampled_image_layout(&self) -> ImageLayout
[src]
fn descriptor_set_input_attachment_layout(&self) -> ImageLayout
[src]
fn identity_swizzle(&self) -> bool
[src]
fn can_be_sampled(&self, sampler: &Sampler) -> bool
[src]
fn format(&self) -> Format
[src]
Returns the format of this view. This can be different from the parent's format.
fn samples(&self) -> u32
[src]
impl<T> SafeBorrow<T> for T
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.