/third_party/flutter/skia/third_party/externals/imgui/examples/ |
D | imgui_impl_dx9.cpp | 45 void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplDX9_RenderDrawData() argument 48 if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) in ImGui_ImplDX9_RenderDrawData() 52 if (!g_pVB || g_VertexBufferSize < draw_data->TotalVtxCount) in ImGui_ImplDX9_RenderDrawData() 55 g_VertexBufferSize = draw_data->TotalVtxCount + 5000; in ImGui_ImplDX9_RenderDrawData() 59 if (!g_pIB || g_IndexBufferSize < draw_data->TotalIdxCount) in ImGui_ImplDX9_RenderDrawData() 62 g_IndexBufferSize = draw_data->TotalIdxCount + 10000; in ImGui_ImplDX9_RenderDrawData() 84 …if (g_pVB->Lock(0, (UINT)(draw_data->TotalVtxCount * sizeof(CUSTOMVERTEX)), (void**)&vtx_dst, D3DL… in ImGui_ImplDX9_RenderDrawData() 86 …if (g_pIB->Lock(0, (UINT)(draw_data->TotalIdxCount * sizeof(ImDrawIdx)), (void**)&idx_dst, D3DLOCK… in ImGui_ImplDX9_RenderDrawData() 88 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplDX9_RenderDrawData() 90 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_ImplDX9_RenderDrawData() [all …]
|
D | imgui_impl_opengl2.cpp | 76 void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplOpenGL2_RenderDrawData() argument 80 int fb_width = (int)(draw_data->DisplaySize.x * io.DisplayFramebufferScale.x); in ImGui_ImplOpenGL2_RenderDrawData() 81 int fb_height = (int)(draw_data->DisplaySize.y * io.DisplayFramebufferScale.y); in ImGui_ImplOpenGL2_RenderDrawData() 84 draw_data->ScaleClipRects(io.DisplayFramebufferScale); in ImGui_ImplOpenGL2_RenderDrawData() 113 …lOrtho(draw_data->DisplayPos.x, draw_data->DisplayPos.x + draw_data->DisplaySize.x, draw_data->Dis… in ImGui_ImplOpenGL2_RenderDrawData() 119 ImVec2 pos = draw_data->DisplayPos; in ImGui_ImplOpenGL2_RenderDrawData() 120 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplOpenGL2_RenderDrawData() 122 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_ImplOpenGL2_RenderDrawData()
|
D | imgui_impl_dx10.cpp | 60 void ImGui_ImplDX10_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplDX10_RenderDrawData() argument 65 if (!g_pVB || g_VertexBufferSize < draw_data->TotalVtxCount) in ImGui_ImplDX10_RenderDrawData() 68 g_VertexBufferSize = draw_data->TotalVtxCount + 5000; in ImGui_ImplDX10_RenderDrawData() 80 if (!g_pIB || g_IndexBufferSize < draw_data->TotalIdxCount) in ImGui_ImplDX10_RenderDrawData() 83 g_IndexBufferSize = draw_data->TotalIdxCount + 10000; in ImGui_ImplDX10_RenderDrawData() 99 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplDX10_RenderDrawData() 101 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_ImplDX10_RenderDrawData() 117 float L = draw_data->DisplayPos.x; in ImGui_ImplDX10_RenderDrawData() 118 float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; in ImGui_ImplDX10_RenderDrawData() 119 float T = draw_data->DisplayPos.y; in ImGui_ImplDX10_RenderDrawData() [all …]
|
D | imgui_impl_dx11.cpp | 60 void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplDX11_RenderDrawData() argument 65 if (!g_pVB || g_VertexBufferSize < draw_data->TotalVtxCount) in ImGui_ImplDX11_RenderDrawData() 68 g_VertexBufferSize = draw_data->TotalVtxCount + 5000; in ImGui_ImplDX11_RenderDrawData() 79 if (!g_pIB || g_IndexBufferSize < draw_data->TotalIdxCount) in ImGui_ImplDX11_RenderDrawData() 82 g_IndexBufferSize = draw_data->TotalIdxCount + 10000; in ImGui_ImplDX11_RenderDrawData() 101 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplDX11_RenderDrawData() 103 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_ImplDX11_RenderDrawData() 119 float L = draw_data->DisplayPos.x; in ImGui_ImplDX11_RenderDrawData() 120 float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; in ImGui_ImplDX11_RenderDrawData() 121 float T = draw_data->DisplayPos.y; in ImGui_ImplDX11_RenderDrawData() [all …]
|
D | imgui_impl_opengl3.cpp | 136 void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplOpenGL3_RenderDrawData() argument 140 int fb_width = (int)(draw_data->DisplaySize.x * io.DisplayFramebufferScale.x); in ImGui_ImplOpenGL3_RenderDrawData() 141 int fb_height = (int)(draw_data->DisplaySize.y * io.DisplayFramebufferScale.y); in ImGui_ImplOpenGL3_RenderDrawData() 144 draw_data->ScaleClipRects(io.DisplayFramebufferScale); in ImGui_ImplOpenGL3_RenderDrawData() 192 float L = draw_data->DisplayPos.x; in ImGui_ImplOpenGL3_RenderDrawData() 193 float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; in ImGui_ImplOpenGL3_RenderDrawData() 194 float T = draw_data->DisplayPos.y; in ImGui_ImplOpenGL3_RenderDrawData() 195 float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; in ImGui_ImplOpenGL3_RenderDrawData() 223 ImVec2 pos = draw_data->DisplayPos; in ImGui_ImplOpenGL3_RenderDrawData() 224 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplOpenGL3_RenderDrawData() [all …]
|
D | imgui_impl_dx12.cpp | 62 void ImGui_ImplDX12_RenderDrawData(ImDrawData* draw_data, ID3D12GraphicsCommandList* ctx) in ImGui_ImplDX12_RenderDrawData() argument 74 if (!g_pVB || g_VertexBufferSize < draw_data->TotalVtxCount) in ImGui_ImplDX12_RenderDrawData() 77 g_VertexBufferSize = draw_data->TotalVtxCount + 5000; in ImGui_ImplDX12_RenderDrawData() 99 if (!g_pIB || g_IndexBufferSize < draw_data->TotalIdxCount) in ImGui_ImplDX12_RenderDrawData() 102 g_IndexBufferSize = draw_data->TotalIdxCount + 10000; in ImGui_ImplDX12_RenderDrawData() 135 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplDX12_RenderDrawData() 137 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_ImplDX12_RenderDrawData() 151 float L = draw_data->DisplayPos.x; in ImGui_ImplDX12_RenderDrawData() 152 float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; in ImGui_ImplDX12_RenderDrawData() 153 float T = draw_data->DisplayPos.y; in ImGui_ImplDX12_RenderDrawData() [all …]
|
D | imgui_impl_allegro5.cpp | 64 void ImGui_ImplAllegro5_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplAllegro5_RenderDrawData() argument 80 float L = draw_data->DisplayPos.x; in ImGui_ImplAllegro5_RenderDrawData() 81 float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; in ImGui_ImplAllegro5_RenderDrawData() 82 float T = draw_data->DisplayPos.y; in ImGui_ImplAllegro5_RenderDrawData() 83 float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; in ImGui_ImplAllegro5_RenderDrawData() 91 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplAllegro5_RenderDrawData() 93 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_ImplAllegro5_RenderDrawData() 126 ImVec2 pos = draw_data->DisplayPos; in ImGui_ImplAllegro5_RenderDrawData()
|
D | imgui_impl_vulkan.cpp | 203 void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer) in ImGui_ImplVulkan_RenderDrawData() argument 206 if (draw_data->TotalVtxCount == 0) in ImGui_ImplVulkan_RenderDrawData() 213 size_t vertex_size = draw_data->TotalVtxCount * sizeof(ImDrawVert); in ImGui_ImplVulkan_RenderDrawData() 214 size_t index_size = draw_data->TotalIdxCount * sizeof(ImDrawIdx); in ImGui_ImplVulkan_RenderDrawData() 228 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplVulkan_RenderDrawData() 230 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_ImplVulkan_RenderDrawData() 269 viewport.width = draw_data->DisplaySize.x; in ImGui_ImplVulkan_RenderDrawData() 270 viewport.height = draw_data->DisplaySize.y; in ImGui_ImplVulkan_RenderDrawData() 280 scale[0] = 2.0f / draw_data->DisplaySize.x; in ImGui_ImplVulkan_RenderDrawData() 281 scale[1] = 2.0f / draw_data->DisplaySize.y; in ImGui_ImplVulkan_RenderDrawData() [all …]
|
D | imgui_impl_marmalade.cpp | 39 void ImGui_Marmalade_RenderDrawData(ImDrawData* draw_data) in ImGui_Marmalade_RenderDrawData() argument 43 draw_data->ScaleClipRects(io.DisplayFramebufferScale); in ImGui_Marmalade_RenderDrawData() 46 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_Marmalade_RenderDrawData() 48 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_Marmalade_RenderDrawData()
|
/third_party/skia/third_party/externals/imgui/backends/ |
D | imgui_impl_opengl2.cpp | 108 static void ImGui_ImplOpenGL2_SetupRenderState(ImDrawData* draw_data, int fb_width, int fb_height) in ImGui_ImplOpenGL2_SetupRenderState() argument 146 …lOrtho(draw_data->DisplayPos.x, draw_data->DisplayPos.x + draw_data->DisplaySize.x, draw_data->Dis… in ImGui_ImplOpenGL2_SetupRenderState() 155 void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplOpenGL2_RenderDrawData() argument 158 int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); in ImGui_ImplOpenGL2_RenderDrawData() 159 int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); in ImGui_ImplOpenGL2_RenderDrawData() 173 ImGui_ImplOpenGL2_SetupRenderState(draw_data, fb_width, fb_height); in ImGui_ImplOpenGL2_RenderDrawData() 176 ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports in ImGui_ImplOpenGL2_RenderDrawData() 177 …ImVec2 clip_scale = draw_data->FramebufferScale; // (1,1) unless using retina display which are of… in ImGui_ImplOpenGL2_RenderDrawData() 180 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplOpenGL2_RenderDrawData() 182 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_ImplOpenGL2_RenderDrawData() [all …]
|
D | imgui_impl_dx9.cpp | 74 static void ImGui_ImplDX9_SetupRenderState(ImDrawData* draw_data) in ImGui_ImplDX9_SetupRenderState() argument 81 vp.Width = (DWORD)draw_data->DisplaySize.x; in ImGui_ImplDX9_SetupRenderState() 82 vp.Height = (DWORD)draw_data->DisplaySize.y; in ImGui_ImplDX9_SetupRenderState() 125 float L = draw_data->DisplayPos.x + 0.5f; in ImGui_ImplDX9_SetupRenderState() 126 float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x + 0.5f; in ImGui_ImplDX9_SetupRenderState() 127 float T = draw_data->DisplayPos.y + 0.5f; in ImGui_ImplDX9_SetupRenderState() 128 float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y + 0.5f; in ImGui_ImplDX9_SetupRenderState() 144 void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplDX9_RenderDrawData() argument 147 if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) in ImGui_ImplDX9_RenderDrawData() 152 if (!bd->pVB || bd->VertexBufferSize < draw_data->TotalVtxCount) in ImGui_ImplDX9_RenderDrawData() [all …]
|
D | imgui_impl_wgpu.cpp | 293 static void ImGui_ImplWGPU_SetupRenderState(ImDrawData* draw_data, WGPURenderPassEncoder ctx, Frame… in ImGui_ImplWGPU_SetupRenderState() argument 298 float L = draw_data->DisplayPos.x; in ImGui_ImplWGPU_SetupRenderState() 299 float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; in ImGui_ImplWGPU_SetupRenderState() 300 float T = draw_data->DisplayPos.y; in ImGui_ImplWGPU_SetupRenderState() 301 float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; in ImGui_ImplWGPU_SetupRenderState() 313 …oderSetViewport(ctx, 0, 0, draw_data->FramebufferScale.x * draw_data->DisplaySize.x, draw_data->Fr… in ImGui_ImplWGPU_SetupRenderState() 328 void ImGui_ImplWGPU_RenderDrawData(ImDrawData* draw_data, WGPURenderPassEncoder pass_encoder) in ImGui_ImplWGPU_RenderDrawData() argument 331 if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) in ImGui_ImplWGPU_RenderDrawData() 340 if (fr->VertexBuffer == NULL || fr->VertexBufferSize < draw_data->TotalVtxCount) in ImGui_ImplWGPU_RenderDrawData() 348 fr->VertexBufferSize = draw_data->TotalVtxCount + 5000; in ImGui_ImplWGPU_RenderDrawData() [all …]
|
D | imgui_impl_dx10.cpp | 78 static void ImGui_ImplDX10_SetupRenderState(ImDrawData* draw_data, ID3D10Device* ctx) in ImGui_ImplDX10_SetupRenderState() argument 85 vp.Width = (UINT)draw_data->DisplaySize.x; in ImGui_ImplDX10_SetupRenderState() 86 vp.Height = (UINT)draw_data->DisplaySize.y; in ImGui_ImplDX10_SetupRenderState() 113 void ImGui_ImplDX10_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplDX10_RenderDrawData() argument 116 if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) in ImGui_ImplDX10_RenderDrawData() 123 if (!bd->pVB || bd->VertexBufferSize < draw_data->TotalVtxCount) in ImGui_ImplDX10_RenderDrawData() 126 bd->VertexBufferSize = draw_data->TotalVtxCount + 5000; in ImGui_ImplDX10_RenderDrawData() 138 if (!bd->pIB || bd->IndexBufferSize < draw_data->TotalIdxCount) in ImGui_ImplDX10_RenderDrawData() 141 bd->IndexBufferSize = draw_data->TotalIdxCount + 10000; in ImGui_ImplDX10_RenderDrawData() 157 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplDX10_RenderDrawData() [all …]
|
D | imgui_impl_dx11.cpp | 79 static void ImGui_ImplDX11_SetupRenderState(ImDrawData* draw_data, ID3D11DeviceContext* ctx) in ImGui_ImplDX11_SetupRenderState() argument 86 vp.Width = draw_data->DisplaySize.x; in ImGui_ImplDX11_SetupRenderState() 87 vp.Height = draw_data->DisplaySize.y; in ImGui_ImplDX11_SetupRenderState() 117 void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplDX11_RenderDrawData() argument 120 if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) in ImGui_ImplDX11_RenderDrawData() 127 if (!bd->pVB || bd->VertexBufferSize < draw_data->TotalVtxCount) in ImGui_ImplDX11_RenderDrawData() 130 bd->VertexBufferSize = draw_data->TotalVtxCount + 5000; in ImGui_ImplDX11_RenderDrawData() 141 if (!bd->pIB || bd->IndexBufferSize < draw_data->TotalIdxCount) in ImGui_ImplDX11_RenderDrawData() 144 bd->IndexBufferSize = draw_data->TotalIdxCount + 10000; in ImGui_ImplDX11_RenderDrawData() 163 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplDX11_RenderDrawData() [all …]
|
D | imgui_impl_opengl3.cpp | 291 static void ImGui_ImplOpenGL3_SetupRenderState(ImDrawData* draw_data, int fb_width, int fb_height, … in ImGui_ImplOpenGL3_SetupRenderState() argument 325 float L = draw_data->DisplayPos.x; in ImGui_ImplOpenGL3_SetupRenderState() 326 float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; in ImGui_ImplOpenGL3_SetupRenderState() 327 float T = draw_data->DisplayPos.y; in ImGui_ImplOpenGL3_SetupRenderState() 328 float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; in ImGui_ImplOpenGL3_SetupRenderState() 367 void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplOpenGL3_RenderDrawData() argument 370 int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); in ImGui_ImplOpenGL3_RenderDrawData() 371 int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); in ImGui_ImplOpenGL3_RenderDrawData() 416 ImGui_ImplOpenGL3_SetupRenderState(draw_data, fb_width, fb_height, vertex_array_object); in ImGui_ImplOpenGL3_RenderDrawData() 419 ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports in ImGui_ImplOpenGL3_RenderDrawData() [all …]
|
D | imgui_impl_dx12.cpp | 90 static void ImGui_ImplDX12_SetupRenderState(ImDrawData* draw_data, ID3D12GraphicsCommandList* ctx, … in ImGui_ImplDX12_SetupRenderState() argument 98 float L = draw_data->DisplayPos.x; in ImGui_ImplDX12_SetupRenderState() 99 float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; in ImGui_ImplDX12_SetupRenderState() 100 float T = draw_data->DisplayPos.y; in ImGui_ImplDX12_SetupRenderState() 101 float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; in ImGui_ImplDX12_SetupRenderState() 115 vp.Width = draw_data->DisplaySize.x; in ImGui_ImplDX12_SetupRenderState() 116 vp.Height = draw_data->DisplaySize.y; in ImGui_ImplDX12_SetupRenderState() 156 void ImGui_ImplDX12_RenderDrawData(ImDrawData* draw_data, ID3D12GraphicsCommandList* ctx) in ImGui_ImplDX12_RenderDrawData() argument 159 if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) in ImGui_ImplDX12_RenderDrawData() 169 if (fr->VertexBuffer == NULL || fr->VertexBufferSize < draw_data->TotalVtxCount) in ImGui_ImplDX12_RenderDrawData() [all …]
|
D | imgui_impl_allegro5.cpp | 83 static void ImGui_ImplAllegro5_SetupRenderState(ImDrawData* draw_data) in ImGui_ImplAllegro5_SetupRenderState() argument 91 float L = draw_data->DisplayPos.x; in ImGui_ImplAllegro5_SetupRenderState() 92 float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; in ImGui_ImplAllegro5_SetupRenderState() 93 float T = draw_data->DisplayPos.y; in ImGui_ImplAllegro5_SetupRenderState() 94 float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; in ImGui_ImplAllegro5_SetupRenderState() 104 void ImGui_ImplAllegro5_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplAllegro5_RenderDrawData() argument 107 if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) in ImGui_ImplAllegro5_RenderDrawData() 120 ImGui_ImplAllegro5_SetupRenderState(draw_data); in ImGui_ImplAllegro5_RenderDrawData() 123 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplAllegro5_RenderDrawData() 125 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_ImplAllegro5_RenderDrawData() [all …]
|
D | imgui_impl_sdlrenderer.cpp | 99 void ImGui_ImplSDLRenderer_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplSDLRenderer_RenderDrawData() argument 110 render_scale.x = (rsx == 1.0f) ? draw_data->FramebufferScale.x : 1.0f; in ImGui_ImplSDLRenderer_RenderDrawData() 111 render_scale.y = (rsy == 1.0f) ? draw_data->FramebufferScale.y : 1.0f; in ImGui_ImplSDLRenderer_RenderDrawData() 114 int fb_width = (int)(draw_data->DisplaySize.x * render_scale.x); in ImGui_ImplSDLRenderer_RenderDrawData() 115 int fb_height = (int)(draw_data->DisplaySize.y * render_scale.y); in ImGui_ImplSDLRenderer_RenderDrawData() 132 ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports in ImGui_ImplSDLRenderer_RenderDrawData() 137 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplSDLRenderer_RenderDrawData() 139 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_ImplSDLRenderer_RenderDrawData()
|
D | imgui_impl_vulkan.cpp | 374 static void ImGui_ImplVulkan_SetupRenderState(ImDrawData* draw_data, VkPipeline pipeline, VkCommand… in ImGui_ImplVulkan_SetupRenderState() argument 386 if (draw_data->TotalVtxCount > 0) in ImGui_ImplVulkan_SetupRenderState() 410 scale[0] = 2.0f / draw_data->DisplaySize.x; in ImGui_ImplVulkan_SetupRenderState() 411 scale[1] = 2.0f / draw_data->DisplaySize.y; in ImGui_ImplVulkan_SetupRenderState() 413 translate[0] = -1.0f - draw_data->DisplayPos.x * scale[0]; in ImGui_ImplVulkan_SetupRenderState() 414 translate[1] = -1.0f - draw_data->DisplayPos.y * scale[1]; in ImGui_ImplVulkan_SetupRenderState() 421 void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer, VkPipel… in ImGui_ImplVulkan_RenderDrawData() argument 424 int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); in ImGui_ImplVulkan_RenderDrawData() 425 int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); in ImGui_ImplVulkan_RenderDrawData() 447 if (draw_data->TotalVtxCount > 0) in ImGui_ImplVulkan_RenderDrawData() [all …]
|
D | imgui_impl_marmalade.cpp | 44 void ImGui_Marmalade_RenderDrawData(ImDrawData* draw_data) in ImGui_Marmalade_RenderDrawData() argument 47 if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) in ImGui_Marmalade_RenderDrawData() 51 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_Marmalade_RenderDrawData() 53 const ImDrawList* cmd_list = draw_data->CmdLists[n]; in ImGui_Marmalade_RenderDrawData()
|
/third_party/mesa3d/src/intel/tools/imgui/ |
D | imgui_impl_opengl3.cpp | 100 void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data) in ImGui_ImplOpenGL3_RenderDrawData() argument 104 int fb_width = (int)(draw_data->DisplaySize.x * io.DisplayFramebufferScale.x); in ImGui_ImplOpenGL3_RenderDrawData() 105 int fb_height = (int)(draw_data->DisplaySize.y * io.DisplayFramebufferScale.y); in ImGui_ImplOpenGL3_RenderDrawData() 108 draw_data->ScaleClipRects(io.DisplayFramebufferScale); in ImGui_ImplOpenGL3_RenderDrawData() 144 float L = draw_data->DisplayPos.x; in ImGui_ImplOpenGL3_RenderDrawData() 145 float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; in ImGui_ImplOpenGL3_RenderDrawData() 146 float T = draw_data->DisplayPos.y; in ImGui_ImplOpenGL3_RenderDrawData() 147 float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; in ImGui_ImplOpenGL3_RenderDrawData() 174 ImVec2 pos = draw_data->DisplayPos; in ImGui_ImplOpenGL3_RenderDrawData() 175 for (int n = 0; n < draw_data->CmdListsCount; n++) in ImGui_ImplOpenGL3_RenderDrawData() [all …]
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_state_shader.c | 263 state->draw_data = draw_create_vertex_shader(softpipe->draw, &state->shader); in softpipe_create_vs_state() 264 if (state->draw_data == NULL) in softpipe_create_vs_state() 267 state->max_sampler = state->draw_data->info.file_max[TGSI_FILE_SAMPLER]; in softpipe_create_vs_state() 274 FREE( state->draw_data ); in softpipe_create_vs_state() 289 (softpipe->vs ? softpipe->vs->draw_data : NULL)); in softpipe_bind_vs_state() 302 draw_delete_vertex_shader(softpipe->draw, state->draw_data); in softpipe_delete_vs_state() 323 state->draw_data = draw_create_geometry_shader(softpipe->draw, in softpipe_create_gs_state() 325 if (state->draw_data == NULL) in softpipe_create_gs_state() 328 state->max_sampler = state->draw_data->info.file_max[TGSI_FILE_SAMPLER]; in softpipe_create_gs_state() 336 FREE( state->draw_data ); in softpipe_create_gs_state() [all …]
|
/third_party/skia/third_party/externals/imgui/examples/example_glfw_vulkan/ |
D | main.cpp | 261 static void FrameRender(ImGui_ImplVulkanH_Window* wd, ImDrawData* draw_data) in FrameRender() argument 305 ImGui_ImplVulkan_RenderDrawData(draw_data, fd->CommandBuffer); in FrameRender() 531 ImDrawData* draw_data = ImGui::GetDrawData(); in main() local 532 … const bool is_minimized = (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f); in main() 539 FrameRender(wd, draw_data); in main()
|
/third_party/skia/third_party/externals/imgui/examples/example_sdl_vulkan/ |
D | main.cpp | 253 static void FrameRender(ImGui_ImplVulkanH_Window* wd, ImDrawData* draw_data) in FrameRender() argument 297 ImGui_ImplVulkan_RenderDrawData(draw_data, fd->CommandBuffer); in FrameRender() 532 ImDrawData* draw_data = ImGui::GetDrawData(); in main() local 533 … const bool is_minimized = (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f); in main() 540 FrameRender(wd, draw_data); in main()
|
/third_party/skia/third_party/externals/imgui/examples/example_apple_opengl2/ |
D | main.mm | 131 ImDrawData* draw_data = ImGui::GetDrawData(); 134 GLsizei width = (GLsizei)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); 135 GLsizei height = (GLsizei)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); 140 ImGui_ImplOpenGL2_RenderDrawData(draw_data);
|