bc3c41b874
Previously, we would emit an invalid [[buffer(-1)]] annotation on the block, causing the Metal compilation to fail. Change-Id: I68b2439c05db3163686e84c5dcc9a5c43870ff67 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/340761 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
12 lines
208 B
GLSL
12 lines
208 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
layout (binding = 789) uniform testBlock {
|
|
float x;
|
|
float[2] y;
|
|
layout (binding = 12) mat3x2 z;
|
|
bool w;
|
|
};
|
|
void main() {
|
|
sk_FragColor = vec4(x, y[0], y[1], 0.0);
|
|
}
|