skia2/resources/sksl/spirv/InterfaceBlockPushConstant.sksl

9 lines
196 B
Plaintext
Raw Normal View History

layout(push_constant) uniform testBlock {
layout(offset=16) half2x2 m1;
layout(offset=32) half2x2 m2;
};
void main() {
sk_FragColor = half4(m1[0][0], m1[1][1], m2[0][0], m2[1][1]);
}