Debug4

Struct Debug4 

Source
#[repr(transparent)]
pub struct Debug4(pub ID3D12Debug4);
Expand description

Adds the ability to disable the debug layer.

For more information: ID3D12Debug4 interface

Tuple Fields§

§0: ID3D12Debug4

Implementations§

Source§

impl Debug4

Source

pub fn enable_debug_layer(&self)

Enables the debug layer.

For more information: ID3D12Debug::EnableDebugLayer method

Source§

impl Debug4

Source

pub fn set_enable_gpu_based_validation(&self, enable: bool)

This method enables or disables GPU-Based Validation (GBV) before creating a device with the debug layer enabled.

For more information: ID3D12Debug1::SetEnableGPUBasedValidation method

Source

pub fn set_enable_synchronized_command_queue_validation(&self, enable: bool)

Enables or disables dependent command queue synchronization when using a D3D12 device with the debug layer enabled.

For more information: ID3D12Debug1::SetEnableSynchronizedCommandQueueValidation method

Source§

impl Debug4

Source

pub fn set_gpu_based_validation_flags(&self, flags: GpuBasedValidationFlags)

This method configures the level of GPU-based validation that the debug device is to perform at runtime.

For more information: ID3D12Debug2::SetGPUBasedValidationFlags method

Source§

impl Debug4

Source

pub fn disable_debug_layer(&self)

Disables the debug layer.

For more information: ID3D12Debug4::DisableDebugLayer method

Source§

impl Debug4

Source

pub fn set_callback(&self, callback: CallbackData)

Source

pub fn take_callback(&self)

Trait Implementations§

Source§

impl AsRef<Debug> for Debug4

Source§

fn as_ref(&self) -> &Debug

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Debug1> for Debug4

Source§

fn as_ref(&self) -> &Debug1

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Debug3> for Debug4

Source§

fn as_ref(&self) -> &Debug3

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Debug4> for Debug4

Source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Debug4> for Debug5

Source§

fn as_ref(&self) -> &Debug4

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Debug4> for Debug6

Source§

fn as_ref(&self) -> &Debug4

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for Debug4

Source§

fn clone(&self) -> Debug4

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Debug4

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Debug4> for Debug

Upcast

Source§

fn from(value: Debug4) -> Self

Converts to this type from the input type.
Source§

impl From<Debug4> for Debug1

Upcast

Source§

fn from(value: Debug4) -> Self

Converts to this type from the input type.
Source§

impl From<Debug4> for Debug3

Upcast

Source§

fn from(value: Debug4) -> Self

Converts to this type from the input type.
Source§

impl From<Debug5> for Debug4

Upcast

Source§

fn from(value: Debug5) -> Self

Converts to this type from the input type.
Source§

impl From<Debug6> for Debug4

Upcast

Source§

fn from(value: Debug6) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Debug4

Source§

fn eq(&self, other: &Debug4) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<Debug> for Debug4

Downcast

Source§

type Error = DxError

The type returned in the event of a conversion error.
Source§

fn try_from(value: Debug) -> Result<Debug4, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Debug1> for Debug4

Downcast

Source§

type Error = DxError

The type returned in the event of a conversion error.
Source§

fn try_from(value: Debug1) -> Result<Debug4, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Debug3> for Debug4

Downcast

Source§

type Error = DxError

The type returned in the event of a conversion error.
Source§

fn try_from(value: Debug3) -> Result<Debug4, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Debug4> for Debug5

Downcast

Source§

type Error = DxError

The type returned in the event of a conversion error.
Source§

fn try_from(value: Debug4) -> Result<Debug5, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Debug4> for Debug6

Downcast

Source§

type Error = DxError

The type returned in the event of a conversion error.
Source§

fn try_from(value: Debug4) -> Result<Debug6, Self::Error>

Performs the conversion.
Source§

impl Eq for Debug4

Source§

impl StructuralPartialEq for Debug4

Auto Trait Implementations§

§

impl Freeze for Debug4

§

impl RefUnwindSafe for Debug4

§

impl Send for Debug4

§

impl Sync for Debug4

§

impl Unpin for Debug4

§

impl UnwindSafe for Debug4

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.