diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-12-31 15:02:48 +0100 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-12-31 16:32:55 +0100 |
commit | 40c720084146e8c2c00b58bc42bf0ebd98fa1496 (patch) | |
tree | 36c05b73c6553464bcd58800a1598e7dada33179 /src | |
parent | Pica/CommandProcessor: Cleanups. (diff) | |
download | yuzu-40c720084146e8c2c00b58bc42bf0ebd98fa1496.tar yuzu-40c720084146e8c2c00b58bc42bf0ebd98fa1496.tar.gz yuzu-40c720084146e8c2c00b58bc42bf0ebd98fa1496.tar.bz2 yuzu-40c720084146e8c2c00b58bc42bf0ebd98fa1496.tar.lz yuzu-40c720084146e8c2c00b58bc42bf0ebd98fa1496.tar.xz yuzu-40c720084146e8c2c00b58bc42bf0ebd98fa1496.tar.zst yuzu-40c720084146e8c2c00b58bc42bf0ebd98fa1496.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/vertex_shader.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp index 090ffd420..ff825e2e1 100644 --- a/src/video_core/vertex_shader.cpp +++ b/src/video_core/vertex_shader.cpp @@ -39,38 +39,31 @@ static struct { static std::array<u32, 1024> shader_memory; static std::array<u32, 1024> swizzle_data; -void SubmitShaderMemoryChange(u32 addr, u32 value) -{ +void SubmitShaderMemoryChange(u32 addr, u32 value) { shader_memory[addr] = value; } -void SubmitSwizzleDataChange(u32 addr, u32 value) -{ +void SubmitSwizzleDataChange(u32 addr, u32 value) { swizzle_data[addr] = value; } -Math::Vec4<float24>& GetFloatUniform(u32 index) -{ +Math::Vec4<float24>& GetFloatUniform(u32 index) { return shader_uniforms.f[index]; } -bool& GetBoolUniform(u32 index) -{ +bool& GetBoolUniform(u32 index) { return shader_uniforms.b[index]; } -Math::Vec4<u8>& GetIntUniform(u32 index) -{ +Math::Vec4<u8>& GetIntUniform(u32 index) { return shader_uniforms.i[index]; } -const std::array<u32, 1024>& GetShaderBinary() -{ +const std::array<u32, 1024>& GetShaderBinary() { return shader_memory; } -const std::array<u32, 1024>& GetSwizzlePatterns() -{ +const std::array<u32, 1024>& GetSwizzlePatterns() { return swizzle_data; } @@ -444,8 +437,7 @@ static void ProcessShaderCode(VertexShaderState& state) { } } -OutputVertex RunShader(const InputVertex& input, int num_attributes) -{ +OutputVertex RunShader(const InputVertex& input, int num_attributes) { VertexShaderState state; const u32* main = &shader_memory[registers.vs_main_offset]; |