diff --git a/src/util/util_vector.h b/src/util/util_vector.h index e7ab5f909..77cdf2942 100644 --- a/src/util/util_vector.h +++ b/src/util/util_vector.h @@ -23,8 +23,8 @@ namespace dxvk { Vector4Base(const Vector4Base& 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& other) const { for (uint32_t i = 0; i < 4; i++) { @@ -158,4 +158,4 @@ namespace dxvk { return result; } -} \ No newline at end of file +}