FFL
Loading...
Searching...
No Matches
FFLVec.h
Go to the documentation of this file.
1#ifndef FFL_VECTOR_H_
2#define FFL_VECTOR_H_
3
4#include <nn/ffl/types.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct FFLVec2
11{
14}
15FFLVec2;
16NN_STATIC_ASSERT(sizeof(FFLVec2) == 8);
17
18typedef struct FFLVec3
19{
23}
24FFLVec3;
25NN_STATIC_ASSERT(sizeof(FFLVec3) == 0xC);
26
27typedef struct FFLVec4
28{
33}
34FFLVec4;
35NN_STATIC_ASSERT(sizeof(FFLVec4) == 0x10);
36
37typedef struct FFLiSnorm10_10_10_2
38{
39 u32 w : 2; // (MSB)
40 u32 z : 10;
41 u32 y : 10;
42 u32 x : 10; // (LSB)
43}
44FFLiSnorm10_10_10_2;
45NN_STATIC_ASSERT(sizeof(FFLiSnorm10_10_10_2) == 4);
46
47typedef struct FFLiSnorm8_8_8_8
48{
53}
54FFLiSnorm8_8_8_8;
55NN_STATIC_ASSERT(sizeof(FFLiSnorm8_8_8_8) == 4);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif // FFL_VECTOR_H_
NN_STATIC_ASSERT(sizeof(FFLiAllocator)==4)
Definition FFLVec.h:11
f32 y
Definition FFLVec.h:13
f32 x
Definition FFLVec.h:12
Definition FFLVec.h:19
f32 x
Definition FFLVec.h:20
f32 y
Definition FFLVec.h:21
f32 z
Definition FFLVec.h:22
Definition FFLVec.h:28
f32 y
Definition FFLVec.h:30
f32 x
Definition FFLVec.h:29
f32 z
Definition FFLVec.h:31
f32 w
Definition FFLVec.h:32
Definition FFLVec.h:38
u32 z
Definition FFLVec.h:40
u32 x
Definition FFLVec.h:42
u32 w
Definition FFLVec.h:39
u32 y
Definition FFLVec.h:41
Definition FFLVec.h:48
s8 z
Definition FFLVec.h:51
s8 y
Definition FFLVec.h:50
s8 x
Definition FFLVec.h:49
s8 w
Definition FFLVec.h:52