Passes over the screen have pipeline workers and a wait of their own (VICTORY_SCREEN_WAIT_MS=0: not); after Belobug 18e57db8
The first run after a new translation (textures-d2: 2,500 pipelines being made, 594 draws a frame dropped in the world's first minute) had no lamps and no colour in the shade to its end; the second (textures-d3) had them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
5108036010
commit
6563de95d8
2 files changed
+106
-24
No files matched your search
@@ -151,6 +151,17 @@ fn host_blend(blend: &D3D12_BLEND_DESC, targets: &D3D12_RT_FORMAT_ARRAY) -> D3D1
|
||||
}
|
||||
|
||||
impl GraphicsState {
|
||||
/// Whether the draws are a pass over the screen: no vertex input, no
|
||||
/// depth or stencil, a target. Such passes fill tables once; their shaders
|
||||
/// are few. (After Belobug/VIctory-Belobug-AMD 18e57db8.)
|
||||
pub(crate) fn screen_pass(&self) -> bool {
|
||||
self.inputs.is_empty()
|
||||
&& (self.depth_format == DXGI_FORMAT_UNKNOWN
|
||||
|| !self.depth.DepthEnable.as_bool() && !self.depth.StencilEnable.as_bool())
|
||||
&& self.targets.NumRenderTargets > 0
|
||||
&& self.topology == D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE
|
||||
}
|
||||
|
||||
/// Takes in one subobject of a stream: its type, then its data at +4
|
||||
/// (+8 for those holding pointers).
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user