Fix ARB_enhanced_layout test.

This commit is contained in:
Hans-Kristian Arntzen 2017-10-10 16:25:47 +02:00
parent 7464232f67
commit c68c72c5be
2 changed files with 28 additions and 0 deletions

View File

@ -8,7 +8,33 @@ struct Foo
int c;
};
layout(binding = 1, std140) buffer SSBO1
{
layout(offset = 4) int a;
layout(offset = 8) int b;
layout(offset = 16) Foo foo;
layout(offset = 48) int c[8];
} ssbo1;
layout(binding = 2, std430) buffer SSBO2
{
layout(offset = 4) int a;
layout(offset = 8) int b;
layout(offset = 16) Foo foo;
layout(offset = 48) int c[8];
} ssbo2;
layout(binding = 0, std140) uniform UBO
{
layout(offset = 4) int a;
layout(offset = 8) int b;
layout(offset = 16) Foo foo;
layout(offset = 48) int c[8];
} ubo;
void main()
{
ssbo1.a = ssbo2.a;
ssbo1.b = ubo.b;
}

View File

@ -33,5 +33,7 @@ layout(std430, binding = 2) buffer SSBO2
void main()
{
ssbo1.a = ssbo2.a;
ssbo1.b = ubo.b;
}