From bef7428dfdada02b51e32c2ee202e4780313d8dc Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Thu, 19 May 2016 09:26:20 +0200 Subject: [PATCH] Update test cases for vertex attribute reflection --- Test/baseResults/reflection.vert.out | 7 +++++++ Test/reflection.vert | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Test/baseResults/reflection.vert.out b/Test/baseResults/reflection.vert.out index 43fb2340..24ee7809 100644 --- a/Test/baseResults/reflection.vert.out +++ b/Test/baseResults/reflection.vert.out @@ -95,3 +95,10 @@ abl2[1]: offset -1, type ffffffff, size 4, index -1 abl2[2]: offset -1, type ffffffff, size 4, index -1 abl2[3]: offset -1, type ffffffff, size 4, index -1 +Vertex attribute reflection: +attributeFloat: offset 0, type 1406, size 0, index 0 +attributeFloat2: offset 0, type 8b50, size 0, index 0 +attributeFloat3: offset 0, type 8b51, size 0, index 0 +attributeFloat4: offset 0, type 8b52, size 0, index 0 +attributeMat4: offset 0, type 8b5c, size 0, index 0 + diff --git a/Test/reflection.vert b/Test/reflection.vert index 101f5ffc..be498225 100644 --- a/Test/reflection.vert +++ b/Test/reflection.vert @@ -94,6 +94,12 @@ struct deep3 { ivec3 v3; }; +in float attributeFloat; +layout(location = 2) in vec2 attributeFloat2; +in vec3 attributeFloat3; +in vec4 attributeFloat4; +in mat4 attributeMat4; + uniform deep3 deepA[2], deepB[2], deepC[3], deepD[2]; const bool control = true; @@ -167,4 +173,10 @@ void main() f += arrBl[2].foo + arrBl[0].foo; f += arrBl2[i].foo; + + f += attributeFloat; + f += attributeFloat2.x; + f += attributeFloat3.x; + f += attributeFloat4.x; + f += attributeMat4[0][1]; }