You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone, I was looking into using large arrays in a uniform block (for some voxel data), but I'm running into an issue.
I'm trying to implement a block containing an array [u8; 64 * 64 * 64], but this is not yet implemented as a trait.
Is it possible for the UniformBlock trait to be implemented for arbitrary array sizes, or is this not feasible?
The text was updated successfully, but these errors were encountered:
Have you considered using a 3d texture instead? I believe that would be much more performant, since pushing uniforms is not the fastest operation. And you would need to push a huge uniform with every draw call.
You can use a UniformBuffer instead. I'm not sure you can use datatype u8, but you could use a u32, and then, if needed, unpack the u32's into u8s in the glsl-shader.
Hey everyone, I was looking into using large arrays in a uniform block (for some voxel data), but I'm running into an issue.
I'm trying to implement a block containing an array
[u8; 64 * 64 * 64]
, but this is not yet implemented as a trait.Is it possible for the UniformBlock trait to be implemented for arbitrary array sizes, or is this not feasible?
The text was updated successfully, but these errors were encountered: