summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar bunnei2018-04-14 15:57:58 -0400
committerGravatar bunnei2018-04-14 16:01:41 -0400
commite6224fec275a725bfbb261003c9db44a3da475df (patch)
treefe71eabcb16f765a3dbf107d8b7dca9dfde854f0 /src/video_core/engines
parentgl_shader_decompiler: Cleanup log statements. (diff)
downloadyuzu-e6224fec275a725bfbb261003c9db44a3da475df.tar.gz
yuzu-e6224fec275a725bfbb261003c9db44a3da475df.tar.xz
yuzu-e6224fec275a725bfbb261003c9db44a3da475df.zip
shaders: Address PR review feedback.
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index e285d097d..98af381df 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -247,6 +247,7 @@ static_assert(sizeof(OpCode) == 0x8, "Incorrect structure size");
247 247
248namespace std { 248namespace std {
249 249
250// TODO(bunne): The below is forbidden by the C++ standard, but works fine. See #330.
250template <> 251template <>
251struct make_unsigned<Tegra::Shader::Attribute> { 252struct make_unsigned<Tegra::Shader::Attribute> {
252 using type = Tegra::Shader::Attribute; 253 using type = Tegra::Shader::Attribute;
@@ -281,7 +282,6 @@ enum class SubOp : u64 {
281 Rsq = 0x5, 282 Rsq = 0x5,
282}; 283};
283 284
284#pragma pack(1)
285union Instruction { 285union Instruction {
286 Instruction& operator=(const Instruction& instr) { 286 Instruction& operator=(const Instruction& instr) {
287 hex = instr.hex; 287 hex = instr.hex;