summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-11 20:08:12 +0200
committerGitHub <noreply@github.com>2018-08-11 20:08:12 +0200
commitb8b9f41b6b3488de84877d34453ca6a0338aeeaf (patch)
treeb641ce5b4b3732439b324321d2ddc7cf079edc0c /src
parentImplement R16S & R16UI & R16I RenderTargetFormats & PixelFormats and more (R16_UNORM needed by Fate Extella) (#848) (diff)
parentvideo_core: Use variable template variants of type_traits interfaces where applicable (diff)
downloadyuzu-b8b9f41b6b3488de84877d34453ca6a0338aeeaf.tar
yuzu-b8b9f41b6b3488de84877d34453ca6a0338aeeaf.tar.gz
yuzu-b8b9f41b6b3488de84877d34453ca6a0338aeeaf.tar.bz2
yuzu-b8b9f41b6b3488de84877d34453ca6a0338aeeaf.tar.lz
yuzu-b8b9f41b6b3488de84877d34453ca6a0338aeeaf.tar.xz
yuzu-b8b9f41b6b3488de84877d34453ca6a0338aeeaf.tar.zst
yuzu-b8b9f41b6b3488de84877d34453ca6a0338aeeaf.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/command_processor.h3
-rw-r--r--src/video_core/engines/shader_bytecode.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/video_core/command_processor.h b/src/video_core/command_processor.h
index f7214ffec..a01153e0b 100644
--- a/src/video_core/command_processor.h
+++ b/src/video_core/command_processor.h
@@ -30,8 +30,7 @@ union CommandHeader {
BitField<29, 3, SubmissionMode> mode;
};
-static_assert(std::is_standard_layout<CommandHeader>::value == true,
- "CommandHeader does not use standard layout");
+static_assert(std::is_standard_layout_v<CommandHeader>, "CommandHeader is not standard layout");
static_assert(sizeof(CommandHeader) == sizeof(u32), "CommandHeader has incorrect size!");
} // namespace Tegra
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 3d4557b7e..3e409c2e1 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -477,8 +477,7 @@ union Instruction {
u64 value;
};
static_assert(sizeof(Instruction) == 0x8, "Incorrect structure size");
-static_assert(std::is_standard_layout<Instruction>::value,
- "Structure does not have standard layout");
+static_assert(std::is_standard_layout_v<Instruction>, "Instruction is not standard layout");
class OpCode {
public: