shader_bytecode: Add constexpr to default constructor of Attribute and Sampler

We already have a constexpr constructor that takes a paremeter, so the
other constructor should have it too.
This commit is contained in:
Lioncash
2018-07-22 03:42:26 -04:00
parent 258a5cee84
commit c051624ed6

View File

@@ -67,7 +67,7 @@ private:
};
union Attribute {
Attribute() = default;
constexpr Attribute() = default;
constexpr explicit Attribute(u64 value) : value(value) {}
@@ -96,7 +96,7 @@ union Attribute {
};
union Sampler {
Sampler() = default;
constexpr Sampler() = default;
constexpr explicit Sampler(u64 value) : value(value) {}