summaryrefslogtreecommitdiffstats
path: root/src/video_core/regs_lighting.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-06-21 23:55:23 +0200
committerGitHub <noreply@github.com>2017-06-21 23:55:23 +0200
commit72b69cea4bf9d01e520fb984a382de3e85af4e36 (patch)
treeff8a7246f49a300a1bbcd0447ace505744ec48db /src/video_core/regs_lighting.h
parentMerge pull request #2789 from yuriks/misc-kernel (diff)
parentgl_state: reset 1d textures (diff)
downloadyuzu-72b69cea4bf9d01e520fb984a382de3e85af4e36.tar
yuzu-72b69cea4bf9d01e520fb984a382de3e85af4e36.tar.gz
yuzu-72b69cea4bf9d01e520fb984a382de3e85af4e36.tar.bz2
yuzu-72b69cea4bf9d01e520fb984a382de3e85af4e36.tar.lz
yuzu-72b69cea4bf9d01e520fb984a382de3e85af4e36.tar.xz
yuzu-72b69cea4bf9d01e520fb984a382de3e85af4e36.tar.zst
yuzu-72b69cea4bf9d01e520fb984a382de3e85af4e36.zip
Diffstat (limited to 'src/video_core/regs_lighting.h')
-rw-r--r--src/video_core/regs_lighting.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/regs_lighting.h b/src/video_core/regs_lighting.h
index 7221d1688..b89709cfe 100644
--- a/src/video_core/regs_lighting.h
+++ b/src/video_core/regs_lighting.h
@@ -26,6 +26,8 @@ struct LightingRegs {
DistanceAttenuation = 16,
};
+ static constexpr unsigned NumLightingSampler = 24;
+
static LightingSampler SpotlightAttenuationSampler(unsigned index) {
return static_cast<LightingSampler>(
static_cast<unsigned>(LightingSampler::SpotlightAttenuation) + index);