pub struct PShadeCaps(/* private fields */);Expand description
[docs.microsoft.com] D3DPSHADECAPS_*
Shading operations capabilities. It is assumed, in general, that if a device supports a given command at all, it supports the d3d::Shade::Flat mode (as specified in the d3d::ShadeMode enumerated type). This flag specifies whether the driver can also support Gouraud shading and whether alpha color components are supported. When alpha components are not supported, the alpha value of colors generated is implicitly 255. This is the maximum possible alpha (that is, the alpha component is at full intensity).
The color, specular highlights, fog, and alpha interpolants of a triangle each have capability flags that an application can use to find out how they are implemented by the device driver.
Implementations§
Source§impl PShadeCaps
impl PShadeCaps
Source§impl PShadeCaps
impl PShadeCaps
pub const None: PShadeCaps
pub const AlphaGouraudBlend: PShadeCaps
pub const ColorGouraudRgb: PShadeCaps
pub const FogGouraud: PShadeCaps
pub const SpecularGouraudRgb: PShadeCaps
Trait Implementations§
Source§impl BitOr for PShadeCaps
impl BitOr for PShadeCaps
Source§impl BitOrAssign for PShadeCaps
impl BitOrAssign for PShadeCaps
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|= operation. Read moreSource§impl Clone for PShadeCaps
impl Clone for PShadeCaps
Source§fn clone(&self) -> PShadeCaps
fn clone(&self) -> PShadeCaps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PShadeCaps
impl Debug for PShadeCaps
Source§impl Default for PShadeCaps
impl Default for PShadeCaps
Source§fn default() -> PShadeCaps
fn default() -> PShadeCaps
Returns the “default value” for a type. Read more
Source§impl From<PShadeCaps> for DWORD
impl From<PShadeCaps> for DWORD
Source§fn from(value: PShadeCaps) -> Self
fn from(value: PShadeCaps) -> Self
Converts to this type from the input type.
Source§impl Hash for PShadeCaps
impl Hash for PShadeCaps
Source§impl Ord for PShadeCaps
impl Ord for PShadeCaps
Source§fn cmp(&self, other: &PShadeCaps) -> Ordering
fn cmp(&self, other: &PShadeCaps) -> 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 PartialEq for PShadeCaps
impl PartialEq for PShadeCaps
Source§impl PartialOrd for PShadeCaps
impl PartialOrd for PShadeCaps
impl Copy for PShadeCaps
impl Eq for PShadeCaps
impl Pod for PShadeCaps
impl StructuralPartialEq for PShadeCaps
Auto Trait Implementations§
impl Freeze for PShadeCaps
impl RefUnwindSafe for PShadeCaps
impl Send for PShadeCaps
impl Sync for PShadeCaps
impl Unpin for PShadeCaps
impl UnwindSafe for PShadeCaps
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.