Make Origin3d::{x,y,z} all have type u32

This commit is contained in:
Jonathan Behrens committed 2019-12-25 21:42:49 -05:00
1 parent 6a963892b5
commit 461f114ad5
2 files changed
+10 -10

No files matched your search

+4 -4
View File
@@ -349,11 +349,11 @@ typedef uint64_t WGPUId_Texture_Dummy;
typedef WGPUId_Texture_Dummy WGPUTextureId;
typedef struct {
float x;
float y;
float z;
uint32_t x;
uint32_t y;
uint32_t z;
} WGPUOrigin3d;
#define WGPUOrigin3d_ZERO (WGPUOrigin3d){ .x = 0.0, .y = 0.0, .z = 0.0 }
#define WGPUOrigin3d_ZERO (WGPUOrigin3d){ .x = 0, .y = 0, .z = 0 }
typedef struct {
WGPUTextureId texture;
+6 -6
View File
@@ -159,16 +159,16 @@ impl Color {
#[repr(C)]
#[derive(Clone, Copy, Debug)]
pub struct Origin3d {
pub x: f32,
pub y: f32,
pub z: f32,
pub x: u32,
pub y: u32,
pub z: u32,
}
impl Origin3d {
pub const ZERO: Self = Origin3d {
x: 0.0,
y: 0.0,
z: 0.0,
x: 0,
y: 0,
z: 0,
};
}