[Code] Make union usage more consistent

This commit is contained in:
Triang3l
2021-11-01 22:56:24 +03:00
committed by Triang3l
parent dbd518f137
commit fdec0ab332
18 changed files with 148 additions and 125 deletions

View File

@@ -65,6 +65,7 @@ class TextureCache {
VkImageView view;
union {
uint16_t swizzle;
struct {
// FIXME: This only applies on little-endian platforms!
uint16_t swiz_x : 3;
@@ -73,8 +74,6 @@ class TextureCache {
uint16_t swiz_w : 3;
uint16_t : 4;
};
uint16_t swizzle;
};
};