summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-18 00:06:10 +0200
committerbunnei <bunneidev@gmail.com>2018-04-18 03:27:07 +0200
commit531c25386e62cf3349d56d3d79ecdfba26b8b530 (patch)
tree4ba53bd107ede7594d4a5fa336757404d6b5c097 /src/video_core
parentbit_field: Remove is_pod check, add is_trivially_copyable_v. (diff)
downloadyuzu-531c25386e62cf3349d56d3d79ecdfba26b8b530.tar
yuzu-531c25386e62cf3349d56d3d79ecdfba26b8b530.tar.gz
yuzu-531c25386e62cf3349d56d3d79ecdfba26b8b530.tar.bz2
yuzu-531c25386e62cf3349d56d3d79ecdfba26b8b530.tar.lz
yuzu-531c25386e62cf3349d56d3d79ecdfba26b8b530.tar.xz
yuzu-531c25386e62cf3349d56d3d79ecdfba26b8b530.tar.zst
yuzu-531c25386e62cf3349d56d3d79ecdfba26b8b530.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/engines/shader_bytecode.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index c368fa7fd..ed66d893a 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -13,7 +13,7 @@ namespace Tegra {
namespace Shader {
struct Register {
- Register() = default;
+ constexpr Register() = default;
constexpr Register(u64 value) : value(value) {}
@@ -40,13 +40,13 @@ struct Register {
}
private:
- u64 value;
+ u64 value{};
};
union Attribute {
Attribute() = default;
- constexpr Attribute(u64 value) : value(value) {}
+ constexpr explicit Attribute(u64 value) : value(value) {}
enum class Index : u64 {
Position = 7,
@@ -65,20 +65,20 @@ union Attribute {
} fmt28;
BitField<39, 8, u64> reg;
- u64 value;
+ u64 value{};
};
union Sampler {
Sampler() = default;
- constexpr Sampler(u64 value) : value(value) {}
+ constexpr explicit Sampler(u64 value) : value(value) {}
enum class Index : u64 {
Sampler_0 = 8,
};
BitField<36, 13, Index> index;
- u64 value;
+ u64 value{};
};
union Uniform {
@@ -248,7 +248,7 @@ union OpCode {
BitField<55, 9, Id> op3;
BitField<52, 12, Id> op4;
BitField<51, 13, Id> op5;
- u64 value;
+ u64 value{};
};
static_assert(sizeof(OpCode) == 0x8, "Incorrect structure size");