yum-mirror/glslang

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

Ralph PotterabortEXT requires that the first parameter be a string literalefa01665

main
342 B17 linesraw
1#version 450
2
3#extension GL_EXT_abort : require
4
5layout(local_size_x = 1) in;
6
7layout(set = 0, binding = 0) buffer Data {
8    int i;
9} data;
10
11// A message supplied by a macro. It expands to a string literal token, so it is
12// still a string literal and must keep compiling.
13#define MSG "macro: %d"
14
15void main() {
16    abortEXT(MSG, data.i);
17}