mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 01:17:33 +01:00
gl_rasterizer: Use alignas(16) instead of explicit padding.
This commit is contained in:
parent
aaa7beeda8
commit
c4d318f691
@ -289,16 +289,11 @@ private:
|
||||
};
|
||||
|
||||
struct LightSrc {
|
||||
GLvec3 specular_0;
|
||||
INSERT_PADDING_WORDS(1);
|
||||
GLvec3 specular_1;
|
||||
INSERT_PADDING_WORDS(1);
|
||||
GLvec3 diffuse;
|
||||
INSERT_PADDING_WORDS(1);
|
||||
GLvec3 ambient;
|
||||
INSERT_PADDING_WORDS(1);
|
||||
GLvec3 position;
|
||||
INSERT_PADDING_WORDS(1);
|
||||
alignas(16) GLvec3 specular_0;
|
||||
alignas(16) GLvec3 specular_1;
|
||||
alignas(16) GLvec3 diffuse;
|
||||
alignas(16) GLvec3 ambient;
|
||||
alignas(16) GLvec3 position;
|
||||
};
|
||||
|
||||
/// Uniform structure for the Uniform Buffer Object, all members must be 16-byte aligned
|
||||
@ -308,9 +303,7 @@ private:
|
||||
GLvec4 tev_combiner_buffer_color;
|
||||
GLint alphatest_ref;
|
||||
GLfloat depth_offset;
|
||||
INSERT_PADDING_WORDS(2);
|
||||
GLvec3 lighting_global_ambient;
|
||||
INSERT_PADDING_WORDS(1);
|
||||
alignas(16) GLvec3 lighting_global_ambient;
|
||||
LightSrc light_src[8];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user