/third_party/flutter/glfw/tests/ |
D | cursor.c | 256 int wnd_width, wnd_height, fb_width, fb_height; in main() local 260 glfwGetFramebufferSize(window, &fb_width, &fb_height); in main() 264 glViewport(0, 0, fb_width, fb_height); in main() 268 glOrtho(0.f, fb_width, 0.f, fb_height, 0.f, 1.f); in main() 271 glVertex2f(0.f, (GLfloat) (fb_height - cursor_y * scale)); in main() 272 glVertex2f((GLfloat) fb_width, (GLfloat) (fb_height - cursor_y * scale)); in main() 274 glVertex2f((GLfloat) cursor_x * scale, (GLfloat) fb_height); in main()
|
/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 142 glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); in ImGui_ImplOpenGL2_SetupRenderState() 159 int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); in ImGui_ImplOpenGL2_RenderDrawData() local 160 if (fb_width == 0 || fb_height == 0) in ImGui_ImplOpenGL2_RenderDrawData() 173 ImGui_ImplOpenGL2_SetupRenderState(draw_data, fb_width, fb_height); in ImGui_ImplOpenGL2_RenderDrawData() 197 ImGui_ImplOpenGL2_SetupRenderState(draw_data, fb_width, fb_height); in ImGui_ImplOpenGL2_RenderDrawData() 210 …glScissor((int)clip_min.x, (int)(fb_height - clip_max.y), (int)(clip_max.x - clip_min.x), (int)(cl… in ImGui_ImplOpenGL2_RenderDrawData()
|
D | imgui_impl_sdlrenderer.cpp | 115 int fb_height = (int)(draw_data->DisplaySize.y * render_scale.y); in ImGui_ImplSDLRenderer_RenderDrawData() local 116 if (fb_width == 0 || fb_height == 0) in ImGui_ImplSDLRenderer_RenderDrawData() 163 if (clip_max.y > fb_height) { clip_max.y = (float)fb_height; } in ImGui_ImplSDLRenderer_RenderDrawData()
|
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 324 glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); in ImGui_ImplOpenGL3_SetupRenderState() 371 int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); in ImGui_ImplOpenGL3_RenderDrawData() local 372 if (fb_width <= 0 || fb_height <= 0) in ImGui_ImplOpenGL3_RenderDrawData() 416 ImGui_ImplOpenGL3_SetupRenderState(draw_data, fb_width, fb_height, vertex_array_object); in ImGui_ImplOpenGL3_RenderDrawData() 439 … ImGui_ImplOpenGL3_SetupRenderState(draw_data, fb_width, fb_height, vertex_array_object); in ImGui_ImplOpenGL3_RenderDrawData() 452 …glScissor((int)clip_min.x, (int)(fb_height - clip_max.y), (int)(clip_max.x - clip_min.x), (int)(cl… in ImGui_ImplOpenGL3_RenderDrawData()
|
D | imgui_impl_vulkan.cpp | 374 …ommandBuffer command_buffer, ImGui_ImplVulkanH_FrameRenderBuffers* rb, int fb_width, int fb_height) in ImGui_ImplVulkan_SetupRenderState() argument 400 viewport.height = (float)fb_height; in ImGui_ImplVulkan_SetupRenderState() 425 int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); in ImGui_ImplVulkan_RenderDrawData() local 426 if (fb_width <= 0 || fb_height <= 0) in ImGui_ImplVulkan_RenderDrawData() 486 ImGui_ImplVulkan_SetupRenderState(draw_data, pipeline, command_buffer, rb, fb_width, fb_height); in ImGui_ImplVulkan_RenderDrawData() 507 … ImGui_ImplVulkan_SetupRenderState(draw_data, pipeline, command_buffer, rb, fb_width, fb_height); in ImGui_ImplVulkan_RenderDrawData() 521 if (clip_max.y > fb_height) { clip_max.y = (float)fb_height; } in ImGui_ImplVulkan_RenderDrawData()
|
/third_party/mesa3d/src/intel/common/ |
D | intel_guardband.h | 27 intel_calculate_guardband_size(uint32_t fb_width, uint32_t fb_height, in intel_calculate_guardband_size() argument 73 if (GFX_VER == 6 && (fb_width & 1 || fb_height & 1)) { in intel_calculate_guardband_size() 86 const float ss_ra_ymax = MAX3(fb_height, m31 + m11, m31 - m11); in intel_calculate_guardband_size()
|
/third_party/mesa3d/src/panfrost/lib/ |
D | pan_encoder.h | 55 unsigned fb_width, unsigned fb_height, in panfrost_tiler_get_polygon_list_size() argument 63 panfrost_choose_hierarchy_mask(fb_width, fb_height, 1, hierarchy); in panfrost_tiler_get_polygon_list_size() 65 return panfrost_tiler_full_size(fb_width, fb_height, hierarchy_mask, hierarchy) + in panfrost_tiler_get_polygon_list_size() 66 panfrost_tiler_header_size(fb_width, fb_height, hierarchy_mask, hierarchy); in panfrost_tiler_get_polygon_list_size()
|
D | pan_cs.h | 176 unsigned fb_width, unsigned fb_height,
|
/third_party/flutter/skia/third_party/externals/imgui/examples/ |
D | imgui_impl_opengl2.cpp | 81 int fb_height = (int)(draw_data->DisplaySize.y * io.DisplayFramebufferScale.y); in ImGui_ImplOpenGL2_RenderDrawData() local 82 if (fb_width == 0 || fb_height == 0) in ImGui_ImplOpenGL2_RenderDrawData() 109 glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); in ImGui_ImplOpenGL2_RenderDrawData() 140 …if (clip_rect.x < fb_width && clip_rect.y < fb_height && clip_rect.z >= 0.0f && clip_rect.w >= 0.0… in ImGui_ImplOpenGL2_RenderDrawData() 143 …glScissor((int)clip_rect.x, (int)(fb_height - clip_rect.w), (int)(clip_rect.z - clip_rect.x), (int… in ImGui_ImplOpenGL2_RenderDrawData()
|
D | imgui_impl_opengl3.cpp | 141 int fb_height = (int)(draw_data->DisplaySize.y * io.DisplayFramebufferScale.y); in ImGui_ImplOpenGL3_RenderDrawData() local 142 if (fb_width <= 0 || fb_height <= 0) in ImGui_ImplOpenGL3_RenderDrawData() 191 glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); in ImGui_ImplOpenGL3_RenderDrawData() 246 …if (clip_rect.x < fb_width && clip_rect.y < fb_height && clip_rect.z >= 0.0f && clip_rect.w >= 0.0… in ImGui_ImplOpenGL3_RenderDrawData() 250 …glScissor((int)clip_rect.x, (int)(fb_height - clip_rect.w), (int)(clip_rect.z - clip_rect.x), (int… in ImGui_ImplOpenGL3_RenderDrawData()
|
D | imgui_impl_metal.mm | 406 int fb_height = (int)(drawData->DisplaySize.y * io.DisplayFramebufferScale.y); 407 if (fb_width <= 0 || fb_height <= 0 || drawData->CmdListsCount == 0) 422 .height = double(fb_height), 484 …if (clip_rect.x < fb_width && clip_rect.y < fb_height && clip_rect.z >= 0.0f && clip_rect.w >= 0.0…
|
/third_party/mesa3d/src/intel/tools/imgui/ |
D | imgui_impl_opengl3.cpp | 105 int fb_height = (int)(draw_data->DisplaySize.y * io.DisplayFramebufferScale.y); in ImGui_ImplOpenGL3_RenderDrawData() local 106 if (fb_width <= 0 || fb_height <= 0) in ImGui_ImplOpenGL3_RenderDrawData() 143 glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); in ImGui_ImplOpenGL3_RenderDrawData() 197 …if (clip_rect.x < fb_width && clip_rect.y < fb_height && clip_rect.z >= 0.0f && clip_rect.w >= 0.0… in ImGui_ImplOpenGL3_RenderDrawData() 200 …glScissor((int)clip_rect.x, (int)(fb_height - clip_rect.w), (int)(clip_rect.z - clip_rect.x), (int… in ImGui_ImplOpenGL3_RenderDrawData()
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_framebuffer.c | 421 float fb_height = (float) svga->curr.framebuffer.height; in get_viewport_prescale() local 509 if (fy + fh > fb_height) { in get_viewport_prescale() 510 prescale->scale[1] *= fh / (fb_height - fy); in get_viewport_prescale() 512 float in = fb_height - fy; /* number of vp pixels inside view */ in get_viewport_prescale() 513 float out = fy + fh - fb_height; /* number of vp pixels out of view */ in get_viewport_prescale() 517 prescale->translate[1] -= fy * (fh / (fb_height - fy)); in get_viewport_prescale() 520 fh = fb_height - fy; in get_viewport_prescale()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_cb_bitmap.c | 258 st->state.fb_height, in setup_render_state() 299 const float fb_height = (float) st->state.fb_height; in draw_bitmap_quad() local 307 const float clip_y0 = y0 / fb_height * 2.0f - 1.0f; in draw_bitmap_quad() 309 const float clip_y1 = y1 / fb_height * 2.0f - 1.0f; in draw_bitmap_quad() 663 const float clip_y_scale = 2.0f / st->state.fb_height; in st_DrawAtlasBitmaps()
|
D | st_cb_clear.c | 241 const GLfloat fb_height = (GLfloat) fb->Height; in clear_with_quad() local 247 const GLfloat y0 = (GLfloat) ctx->DrawBuffer->_Ymin / fb_height * 2.0f - 1.0f; in clear_with_quad() 248 const GLfloat y1 = (GLfloat) ctx->DrawBuffer->_Ymax / fb_height * 2.0f - 1.0f; in clear_with_quad() 334 cso_set_viewport_dims(st->cso_context, fb_width, fb_height, in clear_with_quad()
|
D | st_atom_scissor.c | 52 const unsigned int fb_height = _mesa_geometric_height(fb); in st_update_scissor() local 64 scissor[i].maxy = fb_height; in st_update_scissor()
|
D | st_cb_drawtex.c | 228 const GLfloat fb_height = (GLfloat)_mesa_geometric_height(fb); in st_DrawTex() local 231 const GLfloat clip_y0 = (GLfloat)(y0 / fb_height * 2.0 - 1.0); in st_DrawTex() 233 const GLfloat clip_y1 = (GLfloat)(y1 / fb_height * 2.0 - 1.0); in st_DrawTex()
|
D | st_atom_viewport.c | 67 translate[1] = st->state.fb_height - translate[1]; in st_update_viewport()
|
D | st_atom_msaa.c | 93 st->screen, st->state.fb_height, samples, locations); in update_sample_locations()
|
D | st_atom_framebuffer.c | 216 st->state.fb_height = framebuffer.height; in st_update_framebuffer_state()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_framebuffer.h | 68 util_sample_locations_flip_y(struct pipe_screen *screen, unsigned fb_height,
|
D | u_framebuffer.c | 255 util_sample_locations_flip_y(struct pipe_screen *screen, unsigned fb_height, in util_sample_locations_flip_y() argument 265 shift = fb_height % grid_height; in util_sample_locations_flip_y()
|
/third_party/flutter/glfw/examples/ |
D | splitview.c | 409 int wnd_width, wnd_height, fb_width, fb_height; in cursorPosFun() local 413 glfwGetFramebufferSize(window, &fb_width, &fb_height); in cursorPosFun()
|
/third_party/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_private.h | 84 unsigned fb_width, fb_height; member
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | genX_state_upload.c | 210 const unsigned int fb_height = _mesa_geometric_height(fb); in genX() local 214 rect.ClippedDrawingRectangleYMax = fb_height - 1; in genX() 2316 bool flip_y, unsigned fb_width, unsigned fb_height, argument 2323 bbox[2] = CLAMP(ctx->ViewportArray[i].Y, 0, fb_height); 2324 bbox[3] = MIN2(bbox[2] + ctx->ViewportArray[i].Height, fb_height); 2348 sc->ScissorRectangleYMin = fb_height - bbox[3]; 2349 sc->ScissorRectangleYMax = fb_height - bbox[2] - 1; 2362 const unsigned int fb_height = _mesa_geometric_height(ctx->DrawBuffer); local 2388 set_scissor_bits(ctx, i, flip_y, fb_width, fb_height, &scissor); 2425 const uint32_t fb_height = (float)_mesa_geometric_height(ctx->DrawBuffer); local [all …]
|