fixup! vertex_shader: Optimized SIMD-based vertex shader interpreter for x86 systems.

This commit is contained in:
bunnei 2015-07-08 23:30:51 -04:00
parent 6b98489dfb
commit ca5ec39294

View File

@ -2,7 +2,7 @@
// Licensed under GPLv2 or any later version // Licensed under GPLv2 or any later version
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <string> #include <cstring>
#include <vector> #include <vector>
#include <nihstro/shader_bytecode.h> #include <nihstro/shader_bytecode.h>
@ -193,7 +193,7 @@ static inline bool EvaluateCondition(const CoreState& state, bool refx, bool ref
}; };
void InitCore(CoreState& state) { void InitCore(CoreState& state) {
memcpy(&state.uniform[0].x, g_state.vs.uniforms.f, sizeof(state.uniform)); std::memcpy(&state.uniform[0].x, g_state.vs.uniforms.f, sizeof(state.uniform));
} }
VertexShader::OutputVertex RunShader(CoreState& state, const VertexShader::InputVertex& input, int num_attributes) { VertexShader::OutputVertex RunShader(CoreState& state, const VertexShader::InputVertex& input, int num_attributes) {