pub struct Fragment {
pub instruction_count: u32,
pub attribute_input_mask: u32,
pub partial_tex_type: u32,
pub tex_coords_input_mask: u16,
pub tex_coords_2d: u16,
pub tex_coords_centroid: u16,
pub register_count: u8,
pub output_from_h0: bool,
pub depth_replace: bool,
pub pixel_kill: bool,
pub padding: [u8; 2],
}Expand description
The stage-specific header of a fragment program.
Fields§
§instruction_count: u32Number of 16-byte microcode slots, including embedded constants.
attribute_input_mask: u32The interpolated attributes it reads, a mask.
partial_tex_type: u32Two bits per texture unit, kept as encoded.
tex_coords_input_mask: u16The texture coordinate sets it reads, a mask.
tex_coords_2d: u16The sets that are two-component, a mask.
tex_coords_centroid: u16The sets interpolated at the centroid, a mask.
register_count: u8The number of registers it uses.
output_from_h0: boolWhether the colour output is written from the half-precision register 0.
depth_replace: boolWhether the program writes depth.
pixel_kill: boolWhether the program can kill the pixel.
padding: [u8; 2]The two padding bytes after the flags, as stored.
Trait Implementations§
impl Eq for Fragment
impl StructuralPartialEq for Fragment
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnsafeUnpin for Fragment
impl UnwindSafe for Fragment
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