Style: Declare inline macros as attributes

This commit is contained in:
Thaddeus Crews
2025-04-18 12:00:06 -05:00
parent 09ea7bc6a3
commit dd5460c32a
6 changed files with 16 additions and 15 deletions

View File

@ -3,7 +3,7 @@
#[modes]
mode_ninepatch = #define USE_NINEPATCH
/* clang-format off */
#[specializations]
DISABLE_LIGHTING = false
@ -12,13 +12,13 @@ DISABLE_LIGHTING = false
precision highp float;
precision highp int;
/* clang-format on */
layout(location = 0) in highp vec3 vertex;
out highp vec4 position_interp;
void main() {
position_interp = vec4(vertex.x,1,0,1);
position_interp = vec4(vertex.x, 1, 0, 1);
}
#[fragment]