Skip to content
  • Niklas Haas's avatar
    dispatch: fix std140/std430 packing rules · e6a3f6f0
    Niklas Haas authored
    Actually, turns out our rules were wrong after all: vec3 only consumes 3
    words even though it's aligned to 4, which we were not correctly
    accounting for.
    
    So in the struct { vec3; float; vec2 } the float and vec3 can be packed
    into the same vec4, whereas our code was assuming the vec3 consumed all
    four words (like its alignment).
    e6a3f6f0