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:
@@ -67,7 +67,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
union Attribute {
|
union Attribute {
|
||||||
Attribute() = default;
|
constexpr Attribute() = default;
|
||||||
|
|
||||||
constexpr explicit Attribute(u64 value) : value(value) {}
|
constexpr explicit Attribute(u64 value) : value(value) {}
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ union Attribute {
|
|||||||
};
|
};
|
||||||
|
|
||||||
union Sampler {
|
union Sampler {
|
||||||
Sampler() = default;
|
constexpr Sampler() = default;
|
||||||
|
|
||||||
constexpr explicit Sampler(u64 value) : value(value) {}
|
constexpr explicit Sampler(u64 value) : value(value) {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user