53 "atomicCounterDecrement",
54 "atomicCounterIncrement",
120 "groupMemoryBarrier",
124 "imageAtomicCompSwap",
125 "imageAtomicExchange",
136 "interpolateAtCentriod",
137 "interpolateAtOffset",
138 "interpolateAtSample",
167 "memoryBarrierAtomicCounter",
168 "memoryBarrierBuffer",
169 "memoryBarrierImage",
170 "memoryBarrierShared",
192 "sampler1DArrayShadow",
196 "sampler2DArrayShadow",
205 "samplerCubeArrayShadow",
221 "textureGatherOffset",
222 "textureGatherOffsets",
230 "textureProjGradOffset",
232 "textureProjLodOffset",
234 "textureQueryLevels",
304 "gl_GlobalInvocationID",
308 "gl_LocalInvocationID",
309 "gl_LocalInvocationIndex",
312 "gl_PatchVerticesIn",
371 if (
string[0] ==
'#') {
413 char cont_orig, cont, find, prev =
' ';
419 cont = fmt[strlen(fmt) + 1];
427 if (line->
format !=
nullptr) {
429 cont_orig = fmt[strlen(fmt) + 1];
462 if (*
str ==
'*' && *(
str + 1) ==
'/') {
487 if (*
str ==
'/' && *(
str + 1) ==
'/') {
492 else if (*
str ==
'/' && *(
str + 1) ==
'*') {
499 else if (
ELEM(*
str,
'"',
'\'')) {
506 else if (*
str ==
' ') {
564 if (cont != cont_orig && do_next && line->
next) {
580 static const char *ext[] = {
"glsl",
nullptr};
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
int flatten_string(const SpaceText *st, FlattenString *fs, const char *in)
bool text_check_identifier(char ch)
bool text_check_digit(char ch)
static int txtfmt_glsl_find_builtinfunc(const char *string)
int text_check_format_len(TextLine *line, uint len)
bool text_format_string_literals_check_sorted_array(const Span< const char * > string_literals)
static const char * text_format_glsl_literals_reserved_data[]
static void txtfmt_glsl_format_line(SpaceText *st, TextLine *line, const bool do_next)
static const Span< const char * > text_format_glsl_literals_specialvar(text_format_glsl_literals_specialvar_data, ARRAY_SIZE(text_format_glsl_literals_specialvar_data))
int text_format_string_literal_find(const Span< const char * > string_literals, const char *text)
bool text_check_delim(char ch)
static const char * text_format_glsl_literals_specialvar_data[]
void flatten_string_free(FlattenString *fs)
static const Span< const char * > text_format_glsl_literals_builtinfunc(text_format_glsl_literals_builtinfunc_data, ARRAY_SIZE(text_format_glsl_literals_builtinfunc_data))
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
int BLI_str_utf8_size_safe(const char *p) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
bool text_check_whitespace(char ch)
static char txtfmt_glsl_format_identifier(const char *str)
static const Span< const char * > text_format_glsl_literals_reserved(text_format_glsl_literals_reserved_data, ARRAY_SIZE(text_format_glsl_literals_reserved_data))
static int txtfmt_glsl_find_specialvar(const char *string)
static const char * text_format_glsl_literals_builtinfunc_data[]
static int txtfmt_glsl_find_preprocessor(const char *string)
void ED_text_format_register(TextFormatType *tft)
void text_format_fill_ascii(const char **str_p, char **fmt_p, const char type, const int len)
void ED_text_format_register_glsl()
static int txtfmt_glsl_find_reserved(const char *string)
void text_format_fill(const char **str_p, char **fmt_p, const char type, const int len)
const char * comment_line
char(*) format_identifier(const char *string)
void(*) format_line(SpaceText *st, TextLine *line, bool do_next)