1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-25 15:37:42 +00:00

Remove unused struct fields in VoxelGIData

This reduces the struct size from 112 bytes to 96 bytes.
This commit is contained in:
Hugo Locurcio
2021-11-28 23:09:30 +01:00
parent 69a194f051
commit 36106dba3b
4 changed files with 28 additions and 44 deletions

View File

@@ -68,19 +68,15 @@ sdfgi;
#define MAX_VOXEL_GI_INSTANCES 8
struct VoxelGIData {
mat4 xform;
vec3 bounds;
float dynamic_range;
mat4 xform; // 64 - 64
float bias;
float normal_bias;
bool blend_ambient;
uint texture_slot;
vec3 bounds; // 12 - 76
float dynamic_range; // 4 - 80
uint pad0;
uint pad1;
uint pad2;
uint mipmaps;
float bias; // 4 - 84
float normal_bias; // 4 - 88
bool blend_ambient; // 4 - 92
uint mipmaps; // 4 - 96
};
layout(set = 0, binding = 16, std140) uniform VoxelGIs {