mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 15:04:56 +00:00
General: Mark CMaterialFilter instances constexpr where applicable
Allows omission of runtime overhead.
This commit is contained in:
@@ -302,7 +302,7 @@ bool CActorLights::BuildAreaLightList(const CStateManager& mgr, const CGameArea&
|
||||
x0_areaLights.clear();
|
||||
|
||||
/* Filter for performing final light visibility test */
|
||||
CMaterialFilter filter = CMaterialFilter::MakeIncludeExclude(
|
||||
constexpr auto filter = CMaterialFilter::MakeIncludeExclude(
|
||||
CMaterialList(EMaterialTypes::Solid),
|
||||
CMaterialList(EMaterialTypes::Projectile, EMaterialTypes::ProjectilePassthrough, EMaterialTypes::SeeThrough));
|
||||
u32 mostSigLightIdx = 0;
|
||||
|
||||
Reference in New Issue
Block a user