luminance/scissor.rs
1//! Scissor test and related types.
2//!
3//! The scissor test is a special test performed at rendering time. It allows to define a region of the screen for which
4//! fragments will be discarded.
5
6/// The region outside of which fragments will be discarded.
7#[derive(Copy, Clone, Debug, Eq, PartialEq)]
8pub struct ScissorRegion {
9 /// The x screen position of the scissor region.
10 pub x: u32,
11
12 /// The y screen position of the scissor region.
13 pub y: u32,
14
15 /// The screen width of the scissor region.
16 pub width: u32,
17
18 /// The screen height of the scissor region.
19 pub height: u32,
20}