summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 {
13namespace Shader { 13namespace Shader {
14 14
15struct Register { 15struct Register {
16 Register() = default; 16 constexpr Register() = default;
17 17
18 constexpr Register(u64 value) : value(value) {} 18 constexpr Register(u64 value) : value(value) {}
19 19
@@ -40,13 +40,13 @@ struct Register {
40 } 40 }
41 41
42private: 42private:
43 u64 value; 43 u64 value{};
44}; 44};
45 45
46union Attribute { 46union Attribute {
47 Attribute() = default; 47 Attribute() = default;
48 48
49 constexpr Attribute(u64 value) : value(value) {} 49 constexpr explicit Attribute(u64 value) : value(value) {}
50 50
51 enum class Index : u64 { 51 enum class Index : u64 {
52 Position = 7, 52 Position = 7,
@@ -65,20 +65,20 @@ union Attribute {
65 } fmt28; 65 } fmt28;
66 66
67 BitField<39, 8, u64> reg; 67 BitField<39, 8, u64> reg;
68 u64 value; 68 u64 value{};
69}; 69};
70 70
71union Sampler { 71union Sampler {
72 Sampler() = default; 72 Sampler() = default;
73 73
74 constexpr Sampler(u64 value) : value(value) {} 74 constexpr explicit Sampler(u64 value) : value(value) {}
75 75
76 enum class Index : u64 { 76 enum class Index : u64 {
77 Sampler_0 = 8, 77 Sampler_0 = 8,
78 }; 78 };
79 79
80 BitField<36, 13, Index> index; 80 BitField<36, 13, Index> index;
81 u64 value; 81 u64 value{};
82}; 82};
83 83
84union Uniform { 84union Uniform {
@@ -248,7 +248,7 @@ union OpCode {
248 BitField<55, 9, Id> op3; 248 BitField<55, 9, Id> op3;
249 BitField<52, 12, Id> op4; 249 BitField<52, 12, Id> op4;
250 BitField<51, 13, Id> op5; 250 BitField<51, 13, Id> op5;
251 u64 value; 251 u64 value{};
252}; 252};
253static_assert(sizeof(OpCode) == 0x8, "Incorrect structure size"); 253static_assert(sizeof(OpCode) == 0x8, "Incorrect structure size");
254 254