Skip to content
Permalink
Browse files

VideoCommon/PixelShaderGen: Make arrays immutable

Many of the arrays defined within this file weren't declared as
immutable, which can inhibit the strings being put into the read-only
segment. We can declare them constexpr to make them immutable.

While we're at it, we can use std::array, to allow bounds conditional
bounds checking with standard libraries. The declarations can also be
shortened in the future when all platform toolchain versions we use
support std::array deduction guides. Currently macOS and FreeBSD
builders fail on them.
  • Loading branch information...
lioncash committed May 30, 2019
1 parent e28d08e commit 45934dd0c5f90762cf467b5b7042cfb34c732102
Showing with 137 additions and 88 deletions.
  1. +137 −88 Source/Core/VideoCommon/PixelShaderGen.cpp

0 comments on commit 45934dd

Please sign in to comment.
You can’t perform that action at this time.