Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 1 of 1

Thread: NVIDIA 310.70 std140 layout bug in SSBO

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member Regular Contributor
    Join Date
    Mar 2009

    Post NVIDIA 310.70 std140 layout bug in SSBO

    I think I have found a driver bug.

    Code :
    struct Type {
      ivec2 member0;
    layout(std140, binding = 0) buffer Buffer {
      int data0; // offset 0
      Type data1; // BUG: offset is 8 but should be 16
    } g_buffer;

    Furthermore, in the following (std430) block dvec3 has base alignment 16 not 32 as it should.

    Code :
    layout(std430, binding = 0) buffer Input0 {
      int data0;
      float data1[5];
      mat3x2 data2;
      double data3;
      double data4[2];
      int data5;
      dvec3 data6; // BUG: offset is 80 but should be 96
    } g_input0;

    Last edited by randall; 01-04-2013 at 10:50 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts