mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-17 00:06:08 +00:00
Fix -Werror=conversion error.
This commit is contained in:
parent
8f548266cd
commit
c499c22cf7
|
@ -180,7 +180,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr void Assign(const T& value) {
|
constexpr void Assign(const T& value) {
|
||||||
storage = (static_cast<StorageType>(storage) & ~mask) | FormatValue(value);
|
storage = static_cast<StorageType>((storage & ~mask) | FormatValue(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr T Value() const {
|
constexpr T Value() const {
|
||||||
|
|
|
@ -129,7 +129,7 @@ struct alignas(32) FixedPipelineState {
|
||||||
auto& binding = bindings[index];
|
auto& binding = bindings[index];
|
||||||
binding.raw = 0;
|
binding.raw = 0;
|
||||||
binding.enabled.Assign(enabled ? 1 : 0);
|
binding.enabled.Assign(enabled ? 1 : 0);
|
||||||
binding.stride.Assign(stride);
|
binding.stride.Assign(static_cast<u16>(stride));
|
||||||
binding_divisors[index] = divisor;
|
binding_divisors[index] = divisor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue