diff options
author | Jannik Vogel <email@jannikvogel.de> | 2017-05-08 23:37:38 +0200 |
---|---|---|
committer | Jannik Vogel <email@jannikvogel.de> | 2017-05-11 15:01:27 +0200 |
commit | 925724c9900e357e8621a7a592be189cb4141ed8 (patch) | |
tree | 3573cc8486e0768bbb5fda1bf5f933210c9a26e3 /src/video_core/shader/shader.h | |
parent | Merge pull request #2682 from nicoboss/filter (diff) | |
download | yuzu-925724c9900e357e8621a7a592be189cb4141ed8.tar yuzu-925724c9900e357e8621a7a592be189cb4141ed8.tar.gz yuzu-925724c9900e357e8621a7a592be189cb4141ed8.tar.bz2 yuzu-925724c9900e357e8621a7a592be189cb4141ed8.tar.lz yuzu-925724c9900e357e8621a7a592be189cb4141ed8.tar.xz yuzu-925724c9900e357e8621a7a592be189cb4141ed8.tar.zst yuzu-925724c9900e357e8621a7a592be189cb4141ed8.zip |
Diffstat (limited to 'src/video_core/shader/shader.h')
-rw-r--r-- | src/video_core/shader/shader.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.h index 38ea717ab..e156f6aef 100644 --- a/src/video_core/shader/shader.h +++ b/src/video_core/shader/shader.h @@ -24,6 +24,9 @@ namespace Pica { namespace Shader { +constexpr unsigned MAX_PROGRAM_CODE_LENGTH = 4096; +constexpr unsigned MAX_SWIZZLE_DATA_LENGTH = 4096; + struct AttributeBuffer { alignas(16) Math::Vec4<float24> attr[16]; }; @@ -144,8 +147,8 @@ struct ShaderSetup { return offsetof(ShaderSetup, uniforms.i) + index * sizeof(Math::Vec4<u8>); } - std::array<u32, 1024> program_code; - std::array<u32, 1024> swizzle_data; + std::array<u32, MAX_PROGRAM_CODE_LENGTH> program_code; + std::array<u32, MAX_SWIZZLE_DATA_LENGTH> swizzle_data; /// Data private to ShaderEngines struct EngineData { |