Move Vec3i to common header

This commit is contained in:
baldurk
2025-11-17 14:37:40 +00:00
parent bbd5655cfe
commit 04866327cc
2 changed files with 24 additions and 10 deletions
@@ -69,11 +69,6 @@ enum class ShaderDebugBind
MathResult = 9,
};
struct Vec3i
{
int32_t x, y, z;
};
struct GatherOffsets
{
int32_t u0, v0, u1, v1, u2, v2, u3, v3;
+24 -5
View File
@@ -188,6 +188,25 @@ struct Vec2u
};
};
struct Vec3u
{
Vec3u(uint32_t X, uint32_t Y, uint32_t Z)
{
x = X;
y = Y;
z = Z;
}
Vec3u() { x = y = z = 0; }
union
{
struct
{
uint32_t x, y, z;
};
uint32_t uv[3];
};
};
struct Vec4u
{
Vec4u(uint32_t X, uint32_t Y, uint32_t Z, uint32_t W)
@@ -208,22 +227,22 @@ struct Vec4u
};
};
struct Vec3u
struct Vec3i
{
Vec3u(uint32_t X, uint32_t Y, uint32_t Z)
Vec3i(int32_t X, int32_t Y, int32_t Z)
{
x = X;
y = Y;
z = Z;
}
Vec3u() { x = y = z = 0; }
Vec3i() { x = y = z = 0; }
union
{
struct
{
uint32_t x, y, z;
int32_t x, y, z;
};
uint32_t uv[3];
int32_t uv[3];
};
};