mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-25 07:10:04 +00:00
fixed_pipeline_state: Use regular for loop instead of ranges for perf
MSVC generates better code for it.
This commit is contained in:
parent
d26271b014
commit
46bd362d0d
@ -84,9 +84,10 @@ void FixedPipelineState::Refresh(Tegra::Engines::Maxwell3D& maxwell3d,
|
|||||||
early_z.Assign(regs.force_early_fragment_tests != 0 ? 1 : 0);
|
early_z.Assign(regs.force_early_fragment_tests != 0 ? 1 : 0);
|
||||||
depth_enabled.Assign(regs.zeta_enable != 0 ? 1 : 0);
|
depth_enabled.Assign(regs.zeta_enable != 0 ? 1 : 0);
|
||||||
depth_format.Assign(static_cast<u32>(regs.zeta.format));
|
depth_format.Assign(static_cast<u32>(regs.zeta.format));
|
||||||
std::ranges::transform(regs.rt, color_formats.begin(),
|
|
||||||
[](const auto& rt) { return static_cast<u8>(rt.format); });
|
|
||||||
|
|
||||||
|
for (size_t i = 0; i < regs.rt.size(); ++i) {
|
||||||
|
color_formats[i] = static_cast<u8>(regs.rt[i].format);
|
||||||
|
}
|
||||||
alpha_test_ref = Common::BitCast<u32>(regs.alpha_test_ref);
|
alpha_test_ref = Common::BitCast<u32>(regs.alpha_test_ref);
|
||||||
point_size = Common::BitCast<u32>(regs.point_size);
|
point_size = Common::BitCast<u32>(regs.point_size);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user