yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Ralph PotterAlways pack the abort message with scalar rules; cover every laid out typed64416b4

main
723 B24 linesraw
1#version 450
2
3#extension GL_EXT_abort : require
4#extension GL_EXT_scalar_block_layout : require
5
6layout(local_size_x = 1) in;
7
8layout(scalar, set = 0, binding = 0) buffer Data {
9    int   i;
10    uint  u;
11    float f;
12    vec4  v4;
13    ivec3 v3;
14    uvec2 v2;
15} data;
16
17// The same parameter list as spv.shader.abort.args.vec_mixed.comp, but with scalar
18// block layout requested for the buffer. The abort message is packed with scalar
19// rules either way, so the two shaders must produce identical message offsets: the
20// message layout does not depend on how the rest of the shader is laid out.
21void main() {
22    abortEXT("mixed: %d %v4f %u %v3i %f %v2u",
23             data.i, data.v4, data.u, data.v3, data.f, data.v2);
24}