Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fdcb081 authored by Shih-wei Liao's avatar Shih-wei Liao Committed by Android (Google) Code Review
Browse files

Merge "To enable the reflection of rs_mesh etc. Side benefit: Better type...

Merge "To enable the reflection of rs_mesh etc. Side benefit: Better type checking. Double-checked with Nick that the extra "struct" is enabling reflection and type checking without incurring overhead."
parents bde75706 cac4d6d9
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -14,16 +14,16 @@ typedef uint16_t ushort;
typedef uint32_t uint;
typedef uint64_t ulong;

typedef int rs_element;
typedef int rs_type;
typedef int rs_allocation;
typedef int rs_sampler;
typedef int rs_script;
typedef int rs_mesh;
typedef int rs_program_fragment;
typedef int rs_program_vertex;
typedef int rs_program_raster;
typedef int rs_program_store;
typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_element;
typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_type;
typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_allocation;
typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_sampler;
typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_script;
typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_mesh;
typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_program_fragment;
typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_program_vertex;
typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_program_raster;
typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_program_store;

typedef float float2 __attribute__((ext_vector_type(2)));
typedef float float3 __attribute__((ext_vector_type(3)));