mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-11-27 23:50:16 +00:00
video_core: Use variable template variants of type_traits interfaces where applicable
This commit is contained in:
parent
5191c20b71
commit
b8c43b6080
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue