VERY experimental Nintendo Switch 2 emulator
C++
VideoCore: Force enum sizes to u32 in LightingRegs
Yuri Kunde Schlesner381733acfa25
diff --git a/src/video_core/regs_lighting.h b/src/video_core/regs_lighting.hindex 548a6c4d50..6793405d9b 100644--- a/src/video_core/regs_lighting.h+++ b/src/video_core/regs_lighting.h@@ -34,7 +34,7 @@ struct LightingRegs {* configurations that require more LUTs, more cycles are required on HW to perform lighting* computations.*/- enum class LightingConfig {+ enum class LightingConfig : u32 {Config0 = 0, ///< Reflect Red, Distribution 0, SpotlightConfig1 = 1, ///< Reflect Red, Fresnel, SpotlightConfig2 = 2, ///< Reflect Red, Distribution 0/1@@ -48,7 +48,7 @@ struct LightingRegs {};/// Selects which lighting components are affected by fresnel- enum class LightingFresnelSelector {+ enum class LightingFresnelSelector : u32 {None = 0, ///< Fresnel is disabledPrimaryAlpha = 1, ///< Primary (diffuse) lighting alpha is affected by fresnelSecondaryAlpha = 2, ///< Secondary (specular) lighting alpha is affected by fresnel@@ -58,7 +58,7 @@ struct LightingRegs {};/// Factor used to scale the output of a lighting LUT- enum class LightingScale {+ enum class LightingScale : u32 {Scale1 = 0, ///< Scale is 1xScale2 = 1, ///< Scale is 2xScale4 = 2, ///< Scale is 4x@@ -68,7 +68,7 @@ struct LightingRegs {Scale1_2 = 7, ///< Scale is 0.5x};- enum class LightingLutInput {+ enum class LightingLutInput : u32 {NH = 0, // Cosine of the angle between the normal and half-angle vectorsVH = 1, // Cosine of the angle between the view and half-angle vectorsNV = 2, // Cosine of the angle between the normal and the view vector