|
|
@ -1,5 +1,6 @@
|
|
|
|
#version 450
|
|
|
|
#version 450
|
|
|
|
#extension GL_EXT_buffer_reference : require
|
|
|
|
#extension GL_EXT_buffer_reference : require
|
|
|
|
|
|
|
|
#extension GL_EXT_debug_printf : enable
|
|
|
|
|
|
|
|
|
|
|
|
#include "ui_common.glsl"
|
|
|
|
#include "ui_common.glsl"
|
|
|
|
|
|
|
|
|
|
|
@ -12,6 +13,9 @@ void main() {
|
|
|
|
|
|
|
|
|
|
|
|
uint buffer_pos = atomicAdd(pc.layer.draw.instance_count, string.len);
|
|
|
|
uint buffer_pos = atomicAdd(pc.layer.draw.instance_count, string.len);
|
|
|
|
vec2 pen = vec2(0.0, 0.0);
|
|
|
|
vec2 pen = vec2(0.0, 0.0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
debugPrintfEXT("String[%d] length: %d", gID, string.len);
|
|
|
|
|
|
|
|
|
|
|
|
for(uint i = 0; i < string.len; i++) {
|
|
|
|
for(uint i = 0; i < string.len; i++) {
|
|
|
|
uint code = pc.layer.codes.c[string.offset + i];
|
|
|
|
uint code = pc.layer.codes.c[string.offset + i];
|
|
|
|
Symbol symbol = font.symbols.s[code];
|
|
|
|
Symbol symbol = font.symbols.s[code];
|
|
|
|