pub struct ResourceBarrier(/* private fields */);
Expand description
Wrapper around D3D12_RESOURCE_BARRIER structure. Note this type is not Clone since it contains a raw pointer
Implementations§
Source§impl ResourceBarrier
impl ResourceBarrier
pub fn barrier_type(&self) -> ResourceBarrierType
pub fn set_flags(&mut self, flags: ResourceBarrierFlags) -> &mut Self
pub fn with_flags(self, flags: ResourceBarrierFlags) -> Self
pub fn flags(&self) -> ResourceBarrierFlags
pub fn new_transition(desc: &ResourceTransitionBarrier) -> Self
pub fn transition(&self) -> Option<ResourceTransitionBarrier>
pub fn new_aliasing(desc: &ResourceAliasingBarrier) -> Self
pub fn aliasing(&self) -> Option<ResourceAliasingBarrier>
pub fn new_uav(desc: &ResourceUavBarrier) -> Self
pub fn uav(&self) -> Option<ResourceUavBarrier>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResourceBarrier
impl RefUnwindSafe for ResourceBarrier
impl !Send for ResourceBarrier
impl !Sync for ResourceBarrier
impl Unpin for ResourceBarrier
impl UnwindSafe for ResourceBarrier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more