Merge pull request #1696 from baldurk/fix-nonblock-array-size
Fix treatment of array input/output variables in reflection
This commit is contained in:
@@ -32,5 +32,5 @@ Buffer block reflection:
|
||||
Pipeline input reflection:
|
||||
|
||||
Pipeline output reflection:
|
||||
@entryPointOutput: offset 0, type 8b52, size 0, index 0, binding -1, stages 16
|
||||
@entryPointOutput: offset 0, type 8b52, size 1, index 0, binding -1, stages 16
|
||||
|
||||
|
||||
@@ -22,5 +22,5 @@ Buffer block reflection:
|
||||
Pipeline input reflection:
|
||||
|
||||
Pipeline output reflection:
|
||||
psout.Color: offset 0, type 8b52, size 0, index 0, binding -1, stages 16
|
||||
psout.Color: offset 0, type 8b52, size 1, index 0, binding -1, stages 16
|
||||
|
||||
|
||||
@@ -72,11 +72,11 @@ Buffer variable reflection:
|
||||
Buffer block reflection:
|
||||
|
||||
Pipeline input reflection:
|
||||
attributeFloat: offset 0, type 1406, size 0, index 0, binding -1, stages 1
|
||||
attributeFloat2: offset 0, type 8b50, size 0, index 0, binding -1, stages 1
|
||||
attributeFloat3: offset 0, type 8b51, size 0, index 0, binding -1, stages 1
|
||||
attributeFloat4: offset 0, type 8b52, size 0, index 0, binding -1, stages 1
|
||||
attributeMat4: offset 0, type 8b5c, size 0, index 0, binding -1, stages 1
|
||||
attributeFloat: offset 0, type 1406, size 1, index 0, binding -1, stages 1
|
||||
attributeFloat2: offset 0, type 8b50, size 1, index 0, binding -1, stages 1
|
||||
attributeFloat3: offset 0, type 8b51, size 1, index 0, binding -1, stages 1
|
||||
attributeFloat4: offset 0, type 8b52, size 1, index 0, binding -1, stages 1
|
||||
attributeMat4: offset 0, type 8b5c, size 1, index 0, binding -1, stages 1
|
||||
|
||||
Pipeline output reflection:
|
||||
|
||||
|
||||
@@ -233,5 +233,5 @@ Buffer block reflection:
|
||||
Pipeline input reflection:
|
||||
|
||||
Pipeline output reflection:
|
||||
@entryPointOutput: offset 0, type 8b52, size 0, index 0, binding -1, stages 16
|
||||
@entryPointOutput: offset 0, type 8b52, size 1, index 0, binding -1, stages 16
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ Buffer variable reflection:
|
||||
Buffer block reflection:
|
||||
|
||||
Pipeline input reflection:
|
||||
vertin: offset 0, type 1406, size 0, index 0, binding -1, stages 1
|
||||
vertin: offset 0, type 1406, size 1, index 0, binding -1, stages 1
|
||||
|
||||
Pipeline output reflection:
|
||||
fragout: offset 0, type 1406, size 0, index 0, binding -1, stages 16
|
||||
fragout: offset 0, type 1406, size 1, index 0, binding -1, stages 16
|
||||
|
||||
|
||||
@@ -40,4 +40,5 @@ outval.val: offset 0, type 1406, size 1, index 0, binding -1, stages 1
|
||||
outval.a: offset 0, type 8b51, size 1, index 0, binding -1, stages 1
|
||||
outval.b[0]: offset 0, type 8b50, size 4, index 0, binding -1, stages 1
|
||||
outval.c: offset 0, type 8b5a, size 1, index 0, binding -1, stages 1
|
||||
outarr[0]: offset 0, type 1406, size 3, index 0, binding -1, stages 1
|
||||
|
||||
|
||||
@@ -151,12 +151,13 @@ Buffer variable reflection:
|
||||
Buffer block reflection:
|
||||
|
||||
Pipeline input reflection:
|
||||
attributeFloat: offset 0, type 1406, size 0, index 0, binding -1, stages 1
|
||||
attributeFloat2: offset 0, type 8b50, size 0, index 0, binding -1, stages 1
|
||||
attributeFloat3: offset 0, type 8b51, size 0, index 0, binding -1, stages 1
|
||||
attributeFloat4: offset 0, type 8b52, size 0, index 0, binding -1, stages 1
|
||||
attributeMat4: offset 0, type 8b5c, size 0, index 0, binding -1, stages 1
|
||||
gl_InstanceID: offset 0, type 1404, size 0, index 0, binding -1, stages 1
|
||||
attributeFloat: offset 0, type 1406, size 1, index 0, binding -1, stages 1
|
||||
attributeFloat2: offset 0, type 8b50, size 1, index 0, binding -1, stages 1
|
||||
attributeFloat3: offset 0, type 8b51, size 1, index 0, binding -1, stages 1
|
||||
attributeFloat4: offset 0, type 8b52, size 1, index 0, binding -1, stages 1
|
||||
attributeMat4: offset 0, type 8b5c, size 1, index 0, binding -1, stages 1
|
||||
attributeFloatArray: offset 0, type 1406, size 3, index 0, binding -1, stages 1
|
||||
gl_InstanceID: offset 0, type 1404, size 1, index 0, binding -1, stages 1
|
||||
|
||||
Pipeline output reflection:
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ struct OutputStruct {
|
||||
};
|
||||
|
||||
out OutputStruct outval;
|
||||
out float outarr[3];
|
||||
|
||||
void main()
|
||||
{
|
||||
@@ -48,4 +49,5 @@ void main()
|
||||
f += ubo.flt[gl_InstanceID];
|
||||
TriangleInfo tlocal[5] = t;
|
||||
outval.val = f;
|
||||
outarr[2] = f;
|
||||
}
|
||||
|
||||
@@ -107,6 +107,7 @@ layout(location = 2) in vec2 attributeFloat2;
|
||||
in vec3 attributeFloat3;
|
||||
in vec4 attributeFloat4;
|
||||
in mat4 attributeMat4;
|
||||
in float attributeFloatArray[3];
|
||||
|
||||
uniform deep3 deepA[2], deepB[2], deepC[3], deepD[2];
|
||||
|
||||
@@ -223,6 +224,7 @@ void main()
|
||||
f += attributeFloat3.x;
|
||||
f += attributeFloat4.x;
|
||||
f += attributeMat4[0][1];
|
||||
f += attributeFloatArray[2];
|
||||
f += buf1i.runtimeArray[3];
|
||||
f += buf2i.runtimeArray[3].c;
|
||||
f += buf3i.runtimeArray[gl_InstanceID];
|
||||
|
||||
Reference in New Issue
Block a user