| 15961 | } |
| 15962 | |
| 15963 | static const char* FormatTextureIDForDebugDisplay(char* buf, int buf_size, ImTextureID tex_id) |
| 15964 | { |
| 15965 | union { void* ptr; int integer; } tex_id_opaque; |
| 15966 | memcpy(&tex_id_opaque, &tex_id, ImMin(sizeof(void*), sizeof(tex_id))); |
| 15967 | if (sizeof(tex_id) >= sizeof(void*)) |
| 15968 | ImFormatString(buf, buf_size, "0x%p", tex_id_opaque.ptr); |
| 15969 | else |
| 15970 | ImFormatString(buf, buf_size, "0x%04X", tex_id_opaque.integer); |
| 15971 | return buf; |
| 15972 | } |
| 15973 | |
| 15974 | static const char* FormatTextureRefForDebugDisplay(char* buf, int buf_size, ImTextureRef tex_ref) |
| 15975 | { |
no test coverage detected