mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Move Vec4u to a global struct next to Vec4f
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user