thindx/headers/d3dcompiler.h/constants/
get_inst_offsets.rs

1#[allow(unused_imports)] use crate::*;
2
3use winapi::shared::minwindef::UINT;
4use winapi::um::d3dcompiler::*;
5
6
7
8/// \[[docs.microsoft.com](https://docs.microsoft.com/en-us/windows/win32/api/d3dcompiler/nf-d3dcompiler-d3dgettraceinstructionoffsets#parameters)\]
9/// UINT / D3D_GET_INST_OFFSETS_*
10///
11/// [d3d::Compiler::get_trace_instruction_offsets] `flags`
12#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
13#[repr(transparent)] pub struct GetInstOffsets(UINT);
14
15flags! { GetInstOffsets => UINT; None, IncludeNonExecutable }
16
17#[allow(non_upper_case_globals)] impl GetInstOffsets { // These are enum-like
18    #[doc=""]
19    pub const None                      : GetInstOffsets = GetInstOffsets(0);
20
21    /// Include non-executable code in the retrieved information.
22    pub const IncludeNonExecutable      : GetInstOffsets = GetInstOffsets(D3D_GET_INST_OFFSETS_INCLUDE_NON_EXECUTABLE);
23}
24
25#[doc(hidden)] impl GetInstOffsets { // Ctrl+C Ctrl+V support
26    pub const NONE                      : GetInstOffsets = GetInstOffsets(0);
27
28    /// Include non-executable code in the retrieved information.
29    pub const INCLUDE_NON_EXECUTABLE    : GetInstOffsets = GetInstOffsets(D3D_GET_INST_OFFSETS_INCLUDE_NON_EXECUTABLE);
30}
31
32impl Default for GetInstOffsets {
33    fn default() -> Self { GetInstOffsets::None }
34}