pub struct InstanceFlags {
pub cull_disable: bool,
pub front_counter_clockwise: bool,
pub force_opaque: bool,
pub force_non_opaque: bool,
}Expand description
What an instance does besides place its bottom level.
Fields§
§cull_disable: boolD3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_CULL_DISABLE: the ray’s culling of facings does not apply.
front_counter_clockwise: bool…_TRIANGLE_FRONT_COUNTERCLOCKWISE: a triangle is front-facing when counter-clockwise (clockwise by default).
force_opaque: bool…_FORCE_OPAQUE and …_FORCE_NON_OPAQUE.
force_non_opaque: boolD3D12_RAYTRACING_INSTANCE_FLAG_FORCE_NON_OPAQUE: all the instance’s geometry counts as non-opaque.
Trait Implementations§
Source§impl Clone for InstanceFlags
impl Clone for InstanceFlags
impl Copy for InstanceFlags
Source§impl Debug for InstanceFlags
impl Debug for InstanceFlags
Auto Trait Implementations§
impl Forget for InstanceFlags
impl Freeze for InstanceFlags
impl RefUnwindSafe for InstanceFlags
impl Send for InstanceFlags
impl Sync for InstanceFlags
impl Unpin for InstanceFlags
impl UnsafeUnpin for InstanceFlags
impl UnwindSafe for InstanceFlags
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