From 40c720084146e8c2c00b58bc42bf0ebd98fa1496 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Wed, 31 Dec 2014 15:02:48 +0100 Subject: Pica/VertexShader: Coding style fixes. --- src/video_core/vertex_shader.cpp | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'src/video_core/vertex_shader.cpp') diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp index 090ffd42..ff825e2e 100644 --- a/src/video_core/vertex_shader.cpp +++ b/src/video_core/vertex_shader.cpp @@ -39,38 +39,31 @@ static struct { static std::array shader_memory; static std::array 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& GetFloatUniform(u32 index) -{ +Math::Vec4& GetFloatUniform(u32 index) { return shader_uniforms.f[index]; } -bool& GetBoolUniform(u32 index) -{ +bool& GetBoolUniform(u32 index) { return shader_uniforms.b[index]; } -Math::Vec4& GetIntUniform(u32 index) -{ +Math::Vec4& GetIntUniform(u32 index) { return shader_uniforms.i[index]; } -const std::array& GetShaderBinary() -{ +const std::array& GetShaderBinary() { return shader_memory; } -const std::array& GetSwizzlePatterns() -{ +const std::array& 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]; -- cgit v1.2.3