pub struct GlobalFlags {
pub refactoring_allowed: bool,
pub double_precision: bool,
pub force_early_depth_stencil: bool,
pub raw_and_structured_buffers: bool,
pub skip_optimization: bool,
pub minimum_precision: bool,
pub other: u32,
}Expand description
The flags of a dcl_globalFlags declaration (its control bits). The names are the ones Microsoft’s disassembler
prints; the games’ programs set bits 0 to 5.
Fields§
§refactoring_allowed: boolBit 0, refactoringAllowed.
double_precision: boolBit 1, enableDoublePrecisionFloatOps.
force_early_depth_stencil: boolBit 2, forceEarlyDepthStencil.
raw_and_structured_buffers: boolBit 3, enableRawAndStructuredBuffers.
skip_optimization: boolBit 4, skipOptimization.
minimum_precision: boolBit 5, enableMinimumPrecision.
other: u32The bits above bit 5, as stored (shifted down by six).
Implementations§
Trait Implementations§
Source§impl Clone for GlobalFlags
impl Clone for GlobalFlags
impl Copy for GlobalFlags
Source§impl Debug for GlobalFlags
impl Debug for GlobalFlags
Source§impl Default for GlobalFlags
impl Default for GlobalFlags
impl Eq for GlobalFlags
Source§impl PartialEq for GlobalFlags
impl PartialEq for GlobalFlags
impl StructuralPartialEq for GlobalFlags
Auto Trait Implementations§
impl Forget for GlobalFlags
impl Freeze for GlobalFlags
impl RefUnwindSafe for GlobalFlags
impl Send for GlobalFlags
impl Sync for GlobalFlags
impl Unpin for GlobalFlags
impl UnsafeUnpin for GlobalFlags
impl UnwindSafe for GlobalFlags
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