/third_party/flutter/skia/third_party/externals/imgui/examples/ |
D | imgui_impl_opengl2.cpp | 131 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplOpenGL2_RenderDrawData() local 132 if (pcmd->UserCallback) in ImGui_ImplOpenGL2_RenderDrawData() 135 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplOpenGL2_RenderDrawData() 139 …ImVec4 clip_rect = ImVec4(pcmd->ClipRect.x - pos.x, pcmd->ClipRect.y - pos.y, pcmd->ClipRect.z - p… in ImGui_ImplOpenGL2_RenderDrawData() 146 glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->TextureId); in ImGui_ImplOpenGL2_RenderDrawData() 147 …glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT … in ImGui_ImplOpenGL2_RenderDrawData() 150 idx_buffer += pcmd->ElemCount; in ImGui_ImplOpenGL2_RenderDrawData()
|
D | imgui_impl_allegro5.cpp | 129 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplAllegro5_RenderDrawData() local 130 if (pcmd->UserCallback) in ImGui_ImplAllegro5_RenderDrawData() 132 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplAllegro5_RenderDrawData() 136 ALLEGRO_BITMAP* texture = (ALLEGRO_BITMAP*)pcmd->TextureId; in ImGui_ImplAllegro5_RenderDrawData() 137 …_clipping_rectangle(pcmd->ClipRect.x - pos.x, pcmd->ClipRect.y - pos.y, pcmd->ClipRect.z - pcmd->C… in ImGui_ImplAllegro5_RenderDrawData() 138 …al_draw_prim(&vertices[0], g_VertexDecl, texture, idx_offset, idx_offset + pcmd->ElemCount, ALLEGR… in ImGui_ImplAllegro5_RenderDrawData() 140 idx_offset += pcmd->ElemCount; in ImGui_ImplAllegro5_RenderDrawData()
|
D | imgui_impl_dx9.cpp | 173 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplDX9_RenderDrawData() local 174 if (pcmd->UserCallback) in ImGui_ImplDX9_RenderDrawData() 176 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplDX9_RenderDrawData() 180 …onst RECT r = { (LONG)(pcmd->ClipRect.x - pos.x), (LONG)(pcmd->ClipRect.y - pos.y), (LONG)(pcmd->C… in ImGui_ImplDX9_RenderDrawData() 181 const LPDIRECT3DTEXTURE9 texture = (LPDIRECT3DTEXTURE9)pcmd->TextureId; in ImGui_ImplDX9_RenderDrawData() 184 …(D3DPT_TRIANGLELIST, vtx_offset, 0, (UINT)cmd_list->VtxBuffer.Size, idx_offset, pcmd->ElemCount/3); in ImGui_ImplDX9_RenderDrawData() 186 idx_offset += pcmd->ElemCount; in ImGui_ImplDX9_RenderDrawData()
|
D | imgui_impl_opengl3.cpp | 237 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplOpenGL3_RenderDrawData() local 238 if (pcmd->UserCallback) in ImGui_ImplOpenGL3_RenderDrawData() 241 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplOpenGL3_RenderDrawData() 245 …ImVec4 clip_rect = ImVec4(pcmd->ClipRect.x - pos.x, pcmd->ClipRect.y - pos.y, pcmd->ClipRect.z - p… in ImGui_ImplOpenGL3_RenderDrawData() 255 glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->TextureId); in ImGui_ImplOpenGL3_RenderDrawData() 256 …glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT … in ImGui_ImplOpenGL3_RenderDrawData() 259 idx_buffer_offset += pcmd->ElemCount; in ImGui_ImplOpenGL3_RenderDrawData()
|
D | imgui_impl_marmalade.cpp | 72 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_Marmalade_RenderDrawData() local 73 if (pcmd->UserCallback) in ImGui_Marmalade_RenderDrawData() 75 pcmd->UserCallback(cmd_list, pcmd); in ImGui_Marmalade_RenderDrawData() 86 pCurrentMaterial->SetTexture((CIwTexture*)pcmd->TextureId); in ImGui_Marmalade_RenderDrawData() 88 IwGxDrawPrims(IW_GX_TRI_LIST, (uint16*)idx_buffer, pcmd->ElemCount); in ImGui_Marmalade_RenderDrawData() 90 idx_buffer += pcmd->ElemCount; in ImGui_Marmalade_RenderDrawData()
|
D | imgui_impl_dx10.cpp | 208 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplDX10_RenderDrawData() local 209 if (pcmd->UserCallback) in ImGui_ImplDX10_RenderDrawData() 212 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplDX10_RenderDrawData() 217 …3D10_RECT r = { (LONG)(pcmd->ClipRect.x - pos.x), (LONG)(pcmd->ClipRect.y - pos.y), (LONG)(pcmd->C… in ImGui_ImplDX10_RenderDrawData() 221 ID3D10ShaderResourceView* texture_srv = (ID3D10ShaderResourceView*)pcmd->TextureId; in ImGui_ImplDX10_RenderDrawData() 223 ctx->DrawIndexed(pcmd->ElemCount, idx_offset, vtx_offset); in ImGui_ImplDX10_RenderDrawData() 225 idx_offset += pcmd->ElemCount; in ImGui_ImplDX10_RenderDrawData()
|
D | imgui_impl_dx11.cpp | 213 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplDX11_RenderDrawData() local 214 if (pcmd->UserCallback) in ImGui_ImplDX11_RenderDrawData() 217 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplDX11_RenderDrawData() 222 …3D11_RECT r = { (LONG)(pcmd->ClipRect.x - pos.x), (LONG)(pcmd->ClipRect.y - pos.y), (LONG)(pcmd->C… in ImGui_ImplDX11_RenderDrawData() 226 ID3D11ShaderResourceView* texture_srv = (ID3D11ShaderResourceView*)pcmd->TextureId; in ImGui_ImplDX11_RenderDrawData() 228 ctx->DrawIndexed(pcmd->ElemCount, idx_offset, vtx_offset); in ImGui_ImplDX11_RenderDrawData() 230 idx_offset += pcmd->ElemCount; in ImGui_ImplDX11_RenderDrawData()
|
D | imgui_impl_dx12.cpp | 208 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplDX12_RenderDrawData() local 209 if (pcmd->UserCallback) in ImGui_ImplDX12_RenderDrawData() 211 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplDX12_RenderDrawData() 215 …3D12_RECT r = { (LONG)(pcmd->ClipRect.x - pos.x), (LONG)(pcmd->ClipRect.y - pos.y), (LONG)(pcmd->C… in ImGui_ImplDX12_RenderDrawData() 216 … ctx->SetGraphicsRootDescriptorTable(1, *(D3D12_GPU_DESCRIPTOR_HANDLE*)&pcmd->TextureId); in ImGui_ImplDX12_RenderDrawData() 218 ctx->DrawIndexedInstanced(pcmd->ElemCount, 1, idx_offset, vtx_offset, 0); in ImGui_ImplDX12_RenderDrawData() 220 idx_offset += pcmd->ElemCount; in ImGui_ImplDX12_RenderDrawData()
|
D | imgui_impl_metal.mm | 475 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; 476 if (pcmd->UserCallback) 479 pcmd->UserCallback(cmd_list, pcmd); 483 …ImVec4 clip_rect = ImVec4(pcmd->ClipRect.x - pos.x, pcmd->ClipRect.y - pos.y, pcmd->ClipRect.z - p… 495 if (pcmd->TextureId != NULL) 496 … [commandEncoder setFragmentTexture:(__bridge id<MTLTexture>)(pcmd->TextureId) atIndex:0]; 498 indexCount:pcmd->ElemCount 504 idx_buffer_offset += pcmd->ElemCount * sizeof(ImDrawIdx);
|
D | imgui_impl_vulkan.cpp | 298 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplVulkan_RenderDrawData() local 299 if (pcmd->UserCallback) in ImGui_ImplVulkan_RenderDrawData() 301 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplVulkan_RenderDrawData() 308 …scissor.offset.x = (int32_t)(pcmd->ClipRect.x - display_pos.x) > 0 ? (int32_t)(pcmd->ClipRect.x - … in ImGui_ImplVulkan_RenderDrawData() 309 …scissor.offset.y = (int32_t)(pcmd->ClipRect.y - display_pos.y) > 0 ? (int32_t)(pcmd->ClipRect.y - … in ImGui_ImplVulkan_RenderDrawData() 310 scissor.extent.width = (uint32_t)(pcmd->ClipRect.z - pcmd->ClipRect.x); in ImGui_ImplVulkan_RenderDrawData() 311 …scissor.extent.height = (uint32_t)(pcmd->ClipRect.w - pcmd->ClipRect.y + 1); // FIXME: Why +1 here? in ImGui_ImplVulkan_RenderDrawData() 315 vkCmdDrawIndexed(command_buffer, pcmd->ElemCount, 1, idx_offset, vtx_offset, 0); in ImGui_ImplVulkan_RenderDrawData() 317 idx_offset += pcmd->ElemCount; in ImGui_ImplVulkan_RenderDrawData()
|
/third_party/skia/third_party/externals/imgui/backends/ |
D | imgui_impl_sdlrenderer.cpp | 145 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplSDLRenderer_RenderDrawData() local 146 if (pcmd->UserCallback) in ImGui_ImplSDLRenderer_RenderDrawData() 150 if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) in ImGui_ImplSDLRenderer_RenderDrawData() 153 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplSDLRenderer_RenderDrawData() 158 …ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * … in ImGui_ImplSDLRenderer_RenderDrawData() 159 …ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * … in ImGui_ImplSDLRenderer_RenderDrawData() 175 SDL_Texture* tex = (SDL_Texture*)pcmd->GetTexID(); in ImGui_ImplSDLRenderer_RenderDrawData() 181 idx_buffer + pcmd->IdxOffset, pcmd->ElemCount, sizeof(ImDrawIdx)); in ImGui_ImplSDLRenderer_RenderDrawData()
|
D | imgui_impl_opengl2.cpp | 191 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplOpenGL2_RenderDrawData() local 192 if (pcmd->UserCallback) in ImGui_ImplOpenGL2_RenderDrawData() 196 if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) in ImGui_ImplOpenGL2_RenderDrawData() 199 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplOpenGL2_RenderDrawData() 204 …ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * … in ImGui_ImplOpenGL2_RenderDrawData() 205 …ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * … in ImGui_ImplOpenGL2_RenderDrawData() 213 glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->GetTexID()); in ImGui_ImplOpenGL2_RenderDrawData() 214 …glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT … in ImGui_ImplOpenGL2_RenderDrawData() 216 idx_buffer += pcmd->ElemCount; in ImGui_ImplOpenGL2_RenderDrawData()
|
D | imgui_impl_dx9.cpp | 239 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplDX9_RenderDrawData() local 240 if (pcmd->UserCallback != NULL) in ImGui_ImplDX9_RenderDrawData() 244 if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) in ImGui_ImplDX9_RenderDrawData() 247 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplDX9_RenderDrawData() 252 ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); in ImGui_ImplDX9_RenderDrawData() 253 ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); in ImGui_ImplDX9_RenderDrawData() 259 const LPDIRECT3DTEXTURE9 texture = (LPDIRECT3DTEXTURE9)pcmd->GetTexID(); in ImGui_ImplDX9_RenderDrawData() 262 …D3DPT_TRIANGLELIST, pcmd->VtxOffset + global_vtx_offset, 0, (UINT)cmd_list->VtxBuffer.Size, pcmd->… in ImGui_ImplDX9_RenderDrawData()
|
D | imgui_impl_opengl3.cpp | 433 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplOpenGL3_RenderDrawData() local 434 if (pcmd->UserCallback != NULL) in ImGui_ImplOpenGL3_RenderDrawData() 438 if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) in ImGui_ImplOpenGL3_RenderDrawData() 441 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplOpenGL3_RenderDrawData() 446 …ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * … in ImGui_ImplOpenGL3_RenderDrawData() 447 …ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * … in ImGui_ImplOpenGL3_RenderDrawData() 455 glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->GetTexID()); in ImGui_ImplOpenGL3_RenderDrawData() 458 …ei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, (void*)(intptr_t… in ImGui_ImplOpenGL3_RenderDrawData() 461 …ts(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNE… in ImGui_ImplOpenGL3_RenderDrawData()
|
D | imgui_impl_allegro5.cpp | 162 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplAllegro5_RenderDrawData() local 163 if (pcmd->UserCallback) in ImGui_ImplAllegro5_RenderDrawData() 167 if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) in ImGui_ImplAllegro5_RenderDrawData() 170 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplAllegro5_RenderDrawData() 175 ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); in ImGui_ImplAllegro5_RenderDrawData() 176 ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); in ImGui_ImplAllegro5_RenderDrawData() 181 ALLEGRO_BITMAP* texture = (ALLEGRO_BITMAP*)pcmd->GetTexID(); in ImGui_ImplAllegro5_RenderDrawData() 183 …al_draw_prim(&vertices[0], bd->VertexDecl, texture, idx_offset, idx_offset + pcmd->ElemCount, ALLE… in ImGui_ImplAllegro5_RenderDrawData() 185 idx_offset += pcmd->ElemCount; in ImGui_ImplAllegro5_RenderDrawData()
|
D | imgui_impl_dx10.cpp | 244 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplDX10_RenderDrawData() local 245 if (pcmd->UserCallback) in ImGui_ImplDX10_RenderDrawData() 249 if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) in ImGui_ImplDX10_RenderDrawData() 252 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplDX10_RenderDrawData() 257 ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); in ImGui_ImplDX10_RenderDrawData() 258 ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); in ImGui_ImplDX10_RenderDrawData() 267 ID3D10ShaderResourceView* texture_srv = (ID3D10ShaderResourceView*)pcmd->GetTexID(); in ImGui_ImplDX10_RenderDrawData() 269 …ctx->DrawIndexed(pcmd->ElemCount, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vt… in ImGui_ImplDX10_RenderDrawData()
|
D | imgui_impl_wgpu.cpp | 419 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplWGPU_RenderDrawData() local 420 if (pcmd->UserCallback != NULL) in ImGui_ImplWGPU_RenderDrawData() 424 if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) in ImGui_ImplWGPU_RenderDrawData() 427 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplWGPU_RenderDrawData() 432 ImTextureID tex_id = pcmd->GetTexID(); in ImGui_ImplWGPU_RenderDrawData() 447 …ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * … in ImGui_ImplWGPU_RenderDrawData() 448 …ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * … in ImGui_ImplWGPU_RenderDrawData() 454 …gpuRenderPassEncoderDrawIndexed(pass_encoder, pcmd->ElemCount, 1, pcmd->IdxOffset + global_idx_off… in ImGui_ImplWGPU_RenderDrawData()
|
D | imgui_impl_marmalade.cpp | 77 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_Marmalade_RenderDrawData() local 78 if (pcmd->UserCallback) in ImGui_Marmalade_RenderDrawData() 80 pcmd->UserCallback(cmd_list, pcmd); in ImGui_Marmalade_RenderDrawData() 92 pCurrentMaterial->SetTexture((CIwTexture*)pcmd->GetTexID()); in ImGui_Marmalade_RenderDrawData() 94 IwGxDrawPrims(IW_GX_TRI_LIST, (uint16*)idx_buffer, pcmd->ElemCount); in ImGui_Marmalade_RenderDrawData() 96 idx_buffer += pcmd->ElemCount; in ImGui_Marmalade_RenderDrawData()
|
D | imgui_impl_dx11.cpp | 254 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplDX11_RenderDrawData() local 255 if (pcmd->UserCallback != NULL) in ImGui_ImplDX11_RenderDrawData() 259 if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) in ImGui_ImplDX11_RenderDrawData() 262 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplDX11_RenderDrawData() 267 ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); in ImGui_ImplDX11_RenderDrawData() 268 ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); in ImGui_ImplDX11_RenderDrawData() 277 ID3D11ShaderResourceView* texture_srv = (ID3D11ShaderResourceView*)pcmd->GetTexID(); in ImGui_ImplDX11_RenderDrawData() 279 …ctx->DrawIndexed(pcmd->ElemCount, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vt… in ImGui_ImplDX11_RenderDrawData()
|
D | imgui_impl_dx12.cpp | 250 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplDX12_RenderDrawData() local 251 if (pcmd->UserCallback != NULL) in ImGui_ImplDX12_RenderDrawData() 255 if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) in ImGui_ImplDX12_RenderDrawData() 258 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplDX12_RenderDrawData() 263 ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); in ImGui_ImplDX12_RenderDrawData() 264 ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); in ImGui_ImplDX12_RenderDrawData() 271 texture_handle.ptr = (UINT64)pcmd->GetTexID(); in ImGui_ImplDX12_RenderDrawData() 274 …ctx->DrawIndexedInstanced(pcmd->ElemCount, 1, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset… in ImGui_ImplDX12_RenderDrawData()
|
D | imgui_impl_metal.mm | 495 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; 496 if (pcmd->UserCallback) 500 if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) 503 pcmd->UserCallback(cmd_list, pcmd); 508 …ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * … 509 …ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * … 530 if (ImTextureID tex_id = pcmd->GetTexID()) 533 …[commandEncoder setVertexBufferOffset:(vertexBufferOffset + pcmd->VtxOffset * sizeof(ImDrawVert)) … 535 indexCount:pcmd->ElemCount 538 … indexBufferOffset:indexBufferOffset + pcmd->IdxOffset * sizeof(ImDrawIdx)];
|
D | imgui_impl_vulkan.cpp | 501 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplVulkan_RenderDrawData() local 502 if (pcmd->UserCallback != NULL) in ImGui_ImplVulkan_RenderDrawData() 506 if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) in ImGui_ImplVulkan_RenderDrawData() 509 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplVulkan_RenderDrawData() 514 …ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * … in ImGui_ImplVulkan_RenderDrawData() 515 …ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * … in ImGui_ImplVulkan_RenderDrawData() 534 …vkCmdDrawIndexed(command_buffer, pcmd->ElemCount, 1, pcmd->IdxOffset + global_idx_offset, pcmd->Vt… in ImGui_ImplVulkan_RenderDrawData()
|
/third_party/mesa3d/src/intel/tools/imgui/ |
D | imgui_impl_opengl3.cpp | 188 const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; in ImGui_ImplOpenGL3_RenderDrawData() local 189 if (pcmd->UserCallback) in ImGui_ImplOpenGL3_RenderDrawData() 192 pcmd->UserCallback(cmd_list, pcmd); in ImGui_ImplOpenGL3_RenderDrawData() 196 …ImVec4 clip_rect = ImVec4(pcmd->ClipRect.x - pos.x, pcmd->ClipRect.y - pos.y, pcmd->ClipRect.z - p… in ImGui_ImplOpenGL3_RenderDrawData() 203 glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->TextureId); in ImGui_ImplOpenGL3_RenderDrawData() 204 …glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT … in ImGui_ImplOpenGL3_RenderDrawData() 207 idx_buffer_offset += pcmd->ElemCount; in ImGui_ImplOpenGL3_RenderDrawData()
|
/third_party/openssl/ssl/ |
D | ssl_conf.c | 723 static int ssl_conf_cmd_skip_prefix(SSL_CONF_CTX *cctx, const char **pcmd) in ssl_conf_cmd_skip_prefix() argument 725 if (!pcmd || !*pcmd) in ssl_conf_cmd_skip_prefix() 729 if (strlen(*pcmd) <= cctx->prefixlen) in ssl_conf_cmd_skip_prefix() 732 strncmp(*pcmd, cctx->prefix, cctx->prefixlen)) in ssl_conf_cmd_skip_prefix() 735 strncasecmp(*pcmd, cctx->prefix, cctx->prefixlen)) in ssl_conf_cmd_skip_prefix() 737 *pcmd += cctx->prefixlen; in ssl_conf_cmd_skip_prefix() 739 if (**pcmd != '-' || !(*pcmd)[1]) in ssl_conf_cmd_skip_prefix() 741 *pcmd += 1; in ssl_conf_cmd_skip_prefix()
|
/third_party/node/test/parallel/ |
D | test-cli-eval.js | 205 const pcmd = `${nodejs}${popt} -- ${args}`; 206 child.exec(pcmd, common.mustCall(function(err, stdout, stderr) {
|