pub struct ResourceTransitionBarrier(/* private fields */);
Expand description
Wrapper around D3D12_RESOURCE_TRANSITION_BARRIER structure
Implementations§
Source§impl ResourceTransitionBarrier
impl ResourceTransitionBarrier
pub fn set_resource(&mut self, resource: &Resource) -> &mut Self
pub fn with_resource(self, resource: &Resource) -> Self
pub fn resource(&self) -> Resource
pub fn set_subresource(&mut self, subresource: Option<u32>) -> &mut Self
pub fn with_subresource(self, subresource: Option<u32>) -> Self
pub fn subresource(&self) -> Option<u32>
pub fn set_state_before(&mut self, state_before: ResourceStates) -> &mut Self
pub fn with_state_before(self, state_before: ResourceStates) -> Self
pub fn state_before(&self) -> ResourceStates
pub fn set_state_after(&mut self, state_after: ResourceStates) -> &mut Self
pub fn with_state_after(self, state_after: ResourceStates) -> Self
pub fn state_after(&self) -> ResourceStates
Trait Implementations§
Source§impl Debug for ResourceTransitionBarrier
impl Debug for ResourceTransitionBarrier
Source§impl Default for ResourceTransitionBarrier
impl Default for ResourceTransitionBarrier
Source§fn default() -> ResourceTransitionBarrier
fn default() -> ResourceTransitionBarrier
Returns the “default value” for a type. Read more
Source§impl Hash for ResourceTransitionBarrier
impl Hash for ResourceTransitionBarrier
Source§impl Ord for ResourceTransitionBarrier
impl Ord for ResourceTransitionBarrier
Source§fn cmp(&self, other: &ResourceTransitionBarrier) -> Ordering
fn cmp(&self, other: &ResourceTransitionBarrier) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ResourceTransitionBarrier
impl PartialOrd for ResourceTransitionBarrier
impl Eq for ResourceTransitionBarrier
impl StructuralPartialEq for ResourceTransitionBarrier
Auto Trait Implementations§
impl Freeze for ResourceTransitionBarrier
impl RefUnwindSafe for ResourceTransitionBarrier
impl !Send for ResourceTransitionBarrier
impl !Sync for ResourceTransitionBarrier
impl Unpin for ResourceTransitionBarrier
impl UnwindSafe for ResourceTransitionBarrier
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