The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

u/var: Add u_var_ro_ftext

authored by

Mateo de Mayo and committed by
Moses Turner
bf9e6fa3 db3fe110

+3
+2
src/xrt/auxiliary/util/u_var.h
··· 144 144 U_VAR_KIND_SINK_DEBUG, 145 145 U_VAR_KIND_LOG_LEVEL, 146 146 U_VAR_KIND_RO_TEXT, 147 + U_VAR_KIND_RO_FTEXT, 147 148 U_VAR_KIND_RO_I32, 148 149 U_VAR_KIND_RO_U32, 149 150 U_VAR_KIND_RO_F32, ··· 251 252 ADD_FUNC(sink_debug, struct u_sink_debug, SINK_DEBUG) \ 252 253 ADD_FUNC(log_level, enum u_logging_level, LOG_LEVEL) \ 253 254 ADD_FUNC(ro_text, const char, RO_TEXT) \ 255 + ADD_FUNC(ro_ftext, const char, RO_FTEXT) \ 254 256 ADD_FUNC(ro_i32, int32_t, RO_I32) \ 255 257 ADD_FUNC(ro_u32, uint32_t, RO_I32) \ 256 258 ADD_FUNC(ro_f32, float, RO_F32) \
+1
src/xrt/state_trackers/gui/gui_scene_debug.c
··· 373 373 } 374 374 case U_VAR_KIND_LOG_LEVEL: igComboStr(name, (int *)ptr, "Trace\0Debug\0Info\0Warn\0Error\0\0", 5); break; 375 375 case U_VAR_KIND_RO_TEXT: igText("%s: '%s'", name, (char *)ptr); break; 376 + case U_VAR_KIND_RO_FTEXT: igText(ptr ? (char *)ptr : "%s", name); break; 376 377 case U_VAR_KIND_RO_I32: igInputScalar(name, ImGuiDataType_S32, ptr, NULL, NULL, NULL, ro_i_flags); break; 377 378 case U_VAR_KIND_RO_U32: igInputScalar(name, ImGuiDataType_U32, ptr, NULL, NULL, NULL, ro_i_flags); break; 378 379 case U_VAR_KIND_RO_F32: igInputScalar(name, ImGuiDataType_Float, ptr, NULL, NULL, "%+f", ro_i_flags); break;