This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <memory> | |
#include <assert.h> | |
/** | |
* @brief 一个固定长度的buffer | |
* @note 用于存储固定长度的数据,不会发生内存的重新分配 | |
* @author | |
*/ | |
class FixSizeBuffer { | |
public: | |
FixSizeBuffer(uint32_t size) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (uint32_t s = 0, count = 0; s < app->num_splits; s++) { | |
if (app->activated_gpu_affinity_mask & (1 << s)) { | |
count++; | |
} | |
splits[count] = app->viewer_splits[s + 1]; | |
} | |
tm_rect_t slider_rect = tm_rect_split_off_bottom(&rect, 20.0, 0.0); | |
const uint64_t slider_id = tm_ui_api->make_id(app->window.ui); | |
const tm_ui_slider_t slider = { | |
.id = slider_id, |