Move Vec4u to a global struct next to Vec4f

This commit is contained in:
baldurk
2018-12-13 18:27:43 +00:00
parent 1cb0f29198
commit 62ba684567
2 changed files with 13 additions and 5 deletions
-5
View File
@@ -42,11 +42,6 @@
#define BINDING(b)
#define INST_NAME(name)
struct Vec4u
{
uint32_t x, y, z, w;
};
#define uvec4 Vec4u
#if !defined(VULKAN) && !defined(OPENGL)
+13
View File
@@ -26,6 +26,7 @@
#pragma once
#include <math.h>
#include <stdint.h>
struct Vec2f
{
@@ -104,3 +105,15 @@ inline Vec3f operator+=(Vec3f &a, const Vec3f &b)
a = a + b;
return a;
}
struct Vec4u
{
Vec4u(uint32_t X = 0, uint32_t Y = 0, uint32_t Z = 0, uint32_t W = 0)
{
x = X;
y = Y;
z = Z;
w = W;
}
uint32_t x, y, z, w;
};