mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Better memory organising
This commit is contained in:
@ -7,14 +7,14 @@ layout(binding = 1, rgba32f) uniform image2D accumulation_image;
|
||||
struct GPUObject {
|
||||
vec3 position; // 12 + 4
|
||||
|
||||
int mat_index; // 4
|
||||
|
||||
float radius; // 4
|
||||
vec3 normal; // 12 + 4
|
||||
|
||||
|
||||
vec3 vertex1; // 12 + 4
|
||||
vec3 vertex2; // 12 + 4
|
||||
|
||||
float radius; // 4
|
||||
|
||||
int mat_index; // 4
|
||||
int type; // 4
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user