summaryrefslogtreecommitdiffstats
path: root/src/video_core/vertex_shader.h
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-08-12 20:04:28 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2014-08-25 22:03:18 +0200
commit162d641a301d87d5e25ca5d677b7f8f07f29e748 (patch)
treec22ef7138a8f27b9dfd363270856cceea50fd2bf /src/video_core/vertex_shader.h
parentPica/VertexShader: Fix a bug in the bitfield definitions and add the "negate" field for swizzlers. (diff)
downloadyuzu-162d641a301d87d5e25ca5d677b7f8f07f29e748.tar
yuzu-162d641a301d87d5e25ca5d677b7f8f07f29e748.tar.gz
yuzu-162d641a301d87d5e25ca5d677b7f8f07f29e748.tar.bz2
yuzu-162d641a301d87d5e25ca5d677b7f8f07f29e748.tar.lz
yuzu-162d641a301d87d5e25ca5d677b7f8f07f29e748.tar.xz
yuzu-162d641a301d87d5e25ca5d677b7f8f07f29e748.tar.zst
yuzu-162d641a301d87d5e25ca5d677b7f8f07f29e748.zip
Diffstat (limited to 'src/video_core/vertex_shader.h')
-rw-r--r--src/video_core/vertex_shader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/vertex_shader.h b/src/video_core/vertex_shader.h
index f0a8a5b60..847fdc450 100644
--- a/src/video_core/vertex_shader.h
+++ b/src/video_core/vertex_shader.h
@@ -27,7 +27,6 @@ struct OutputVertex {
Math::Vec4<float24> dummy; // quaternions (not implemented, yet)
Math::Vec4<float24> color;
Math::Vec2<float24> tc0;
- float24 tc0_v;
// Padding for optimal alignment
float24 pad[14];
@@ -36,6 +35,7 @@ struct OutputVertex {
// position after perspective divide
Math::Vec3<float24> screenpos;
+ float24 pad2;
// Linear interpolation
// factor: 0=this, 1=vtx
@@ -59,6 +59,7 @@ struct OutputVertex {
}
};
static_assert(std::is_pod<OutputVertex>::value, "Structure is not POD");
+static_assert(sizeof(OutputVertex) == 32 * sizeof(float), "OutputVertex has invalid size");
union Instruction {
enum class OpCode : u32 {