mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 10:24:10 +01:00
[util] Fix indexing of non-float vectors
This commit is contained in:
parent
9579132942
commit
f9034007ac
@ -23,8 +23,8 @@ namespace dxvk {
|
||||
|
||||
Vector4Base(const Vector4Base<T>& other) = default;
|
||||
|
||||
inline float& operator[](size_t index) { return data[index]; }
|
||||
inline const float& operator[](size_t index) const { return data[index]; }
|
||||
inline T& operator[](size_t index) { return data[index]; }
|
||||
inline const T& operator[](size_t index) const { return data[index]; }
|
||||
|
||||
bool operator==(const Vector4Base<T>& other) const {
|
||||
for (uint32_t i = 0; i < 4; i++) {
|
||||
@ -158,4 +158,4 @@ namespace dxvk {
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user