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."
This commit is contained in:
committed by
Android (Google) Code Review
commit
1fdcb0814b
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user