Lines Matching refs:CmdBuffer
361 CmdBuffer.resize(0); in Clear()
378 CmdBuffer.clear(); in ClearFreeMemory()
392 _Channels[i].CmdBuffer.clear(); in ClearFreeMemory()
401 dst->CmdBuffer = CmdBuffer; in CloneOutput()
419 CmdBuffer.push_back(draw_cmd); in AddDrawCmd()
424 ImDrawCmd* current_cmd = CmdBuffer.Size ? &CmdBuffer.back() : NULL; in AddCallback()
428 current_cmd = &CmdBuffer.back(); in AddCallback()
442 ImDrawCmd* curr_cmd = CmdBuffer.Size > 0 ? &CmdBuffer.Data[CmdBuffer.Size-1] : NULL; in UpdateClipRect()
450 ImDrawCmd* prev_cmd = CmdBuffer.Size > 1 ? curr_cmd - 1 : NULL; in UpdateClipRect()
452 CmdBuffer.pop_back(); in UpdateClipRect()
461 ImDrawCmd* curr_cmd = CmdBuffer.Size ? &CmdBuffer.back() : NULL; in UpdateTextureID()
469 ImDrawCmd* prev_cmd = CmdBuffer.Size > 1 ? curr_cmd - 1 : NULL; in UpdateTextureID()
471 CmdBuffer.pop_back(); in UpdateTextureID()
543 _Channels[i].CmdBuffer.resize(0); in ChannelsSplit()
546 if (_Channels[i].CmdBuffer.Size == 0) in ChannelsSplit()
551 _Channels[i].CmdBuffer.push_back(draw_cmd); in ChannelsSplit()
563 if (CmdBuffer.Size && CmdBuffer.back().ElemCount == 0) in ChannelsMerge()
564 CmdBuffer.pop_back(); in ChannelsMerge()
570 if (ch.CmdBuffer.Size && ch.CmdBuffer.back().ElemCount == 0) in ChannelsMerge()
571 ch.CmdBuffer.pop_back(); in ChannelsMerge()
572 new_cmd_buffer_count += ch.CmdBuffer.Size; in ChannelsMerge()
575 CmdBuffer.resize(CmdBuffer.Size + new_cmd_buffer_count); in ChannelsMerge()
578 ImDrawCmd* cmd_write = CmdBuffer.Data + CmdBuffer.Size - new_cmd_buffer_count; in ChannelsMerge()
583 …if (int sz = ch.CmdBuffer.Size) { memcpy(cmd_write, ch.CmdBuffer.Data, sz * sizeof(ImDrawCmd)); cm… in ChannelsMerge()
594 …memcpy(&_Channels.Data[_ChannelsCurrent].CmdBuffer, &CmdBuffer, sizeof(CmdBuffer)); // copy 12 byt… in ChannelsSetCurrent()
597 memcpy(&CmdBuffer, &_Channels.Data[_ChannelsCurrent].CmdBuffer, sizeof(CmdBuffer)); in ChannelsSetCurrent()
605 ImDrawCmd& draw_cmd = CmdBuffer.Data[CmdBuffer.Size-1]; in PrimReserve()
1298 for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) in ScaleClipRects()
1300 ImDrawCmd* cmd = &cmd_list->CmdBuffer[cmd_i]; in ScaleClipRects()
2932 …draw_list->CmdBuffer[draw_list->CmdBuffer.Size-1].ElemCount -= (idx_expected_size - draw_list->Idx… in RenderText()