summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/debugger/graphics_tracing.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-08-11 23:55:24 +0200
committerbunnei <bunneidev@gmail.com>2015-08-11 23:55:24 +0200
commit35f336066354bd667524d99439a5e792ae7e7366 (patch)
treef1cb819c0574cc3a6cbbdbaf8d71f90ea222c60a /src/citra_qt/debugger/graphics_tracing.cpp
parentMerge pull request #1023 from yuriks/gl-state-bugs (diff)
parentARM Core, Video Core, CitraQt, Citrace: Use CommonTypes types instead of the standard u?int*_t types. (diff)
downloadyuzu-35f336066354bd667524d99439a5e792ae7e7366.tar
yuzu-35f336066354bd667524d99439a5e792ae7e7366.tar.gz
yuzu-35f336066354bd667524d99439a5e792ae7e7366.tar.bz2
yuzu-35f336066354bd667524d99439a5e792ae7e7366.tar.lz
yuzu-35f336066354bd667524d99439a5e792ae7e7366.tar.xz
yuzu-35f336066354bd667524d99439a5e792ae7e7366.tar.zst
yuzu-35f336066354bd667524d99439a5e792ae7e7366.zip
Diffstat (limited to 'src/citra_qt/debugger/graphics_tracing.cpp')
-rw-r--r--src/citra_qt/debugger/graphics_tracing.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/citra_qt/debugger/graphics_tracing.cpp b/src/citra_qt/debugger/graphics_tracing.cpp
index 3f20f149d..f80cb7493 100644
--- a/src/citra_qt/debugger/graphics_tracing.cpp
+++ b/src/citra_qt/debugger/graphics_tracing.cpp
@@ -14,6 +14,8 @@
#include <boost/range/algorithm/copy.hpp>
+#include "common/common_types.h"
+
#include "core/hw/gpu.h"
#include "core/hw/lcd.h"
@@ -66,14 +68,14 @@ void GraphicsTracingWidget::StartRecording() {
// Encode floating point numbers to 24-bit values
// TODO: Drop this explicit conversion once we store float24 values bit-correctly internally.
- std::array<uint32_t, 4 * 16> default_attributes;
+ std::array<u32, 4 * 16> default_attributes;
for (unsigned i = 0; i < 16; ++i) {
for (unsigned comp = 0; comp < 3; ++comp) {
default_attributes[4 * i + comp] = nihstro::to_float24(Pica::g_state.vs.default_attributes[i][comp].ToFloat32());
}
}
- std::array<uint32_t, 4 * 96> vs_float_uniforms;
+ std::array<u32, 4 * 96> vs_float_uniforms;
for (unsigned i = 0; i < 96; ++i)
for (unsigned comp = 0; comp < 3; ++comp)
vs_float_uniforms[4 * i + comp] = nihstro::to_float24(Pica::g_state.vs.uniforms.f[i][comp].ToFloat32());