Headless pictures draw on the GPU, with the viewport's pipelines (CPU rasterizer as last tier) (#1555)
Thanks @jyviko.
This commit is contained in:
1 parent
48322f6464
commit
1a0b33fcf3
54 files changed
+3525
-1998
No files matched your search
@@ -7,6 +7,7 @@
|
||||
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
pub mod capture;
|
||||
pub mod cmd;
|
||||
pub mod control_auth;
|
||||
pub mod crash;
|
||||
@@ -290,6 +291,20 @@ pub enum SurfaceAnalysis {
|
||||
Access { dir: Vec3 },
|
||||
}
|
||||
|
||||
impl SurfaceAnalysis {
|
||||
/// How a picture shades the faces for this analysis.
|
||||
pub fn mode(self) -> render::AnalysisMode {
|
||||
use render::AnalysisMode as M;
|
||||
match self {
|
||||
SurfaceAnalysis::Zebra { stripes } => M::Zebra { stripes },
|
||||
SurfaceAnalysis::Draft { pull, angle } => M::Draft { pull, angle },
|
||||
SurfaceAnalysis::Curvature { radius } => M::Curvature { radius },
|
||||
SurfaceAnalysis::Environment => M::Environment,
|
||||
SurfaceAnalysis::Access { dir } => M::Access { dir },
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const MAX_UNDO: usize = 200;
|
||||
/// Checkpoints kept (the oldest go first).
|
||||
const MAX_CHECKPOINTS: usize = 16;
|
||||
|
||||
Reference in new issue
Block a user