Home
last modified time | relevance | path

Searched refs:fb_width (Results 1 – 25 of 29) sorted by relevance

12

/third_party/glfw/tests/
Dcursor.c256 int wnd_width, wnd_height, fb_width, fb_height; in main() local
260 glfwGetFramebufferSize(window, &fb_width, &fb_height); in main()
262 scale = (float) fb_width / (float) wnd_width; 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()
272 glVertex2f((GLfloat) fb_width, (GLfloat) (fb_height - cursor_y * scale)); in main()
/third_party/skia/third_party/externals/imgui/backends/
Dimgui_impl_opengl2.cpp108 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()
158 int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); 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()
Dimgui_impl_sdlrenderer.cpp114 int fb_width = (int)(draw_data->DisplaySize.x * render_scale.x); in ImGui_ImplSDLRenderer_RenderDrawData() local
116 if (fb_width == 0 || fb_height == 0) in ImGui_ImplSDLRenderer_RenderDrawData()
162 if (clip_max.x > fb_width) { clip_max.x = (float)fb_width; } in ImGui_ImplSDLRenderer_RenderDrawData()
Dimgui_impl_opengl3.cpp291 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()
370 int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); 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()
Dimgui_impl_vulkan.cpp374 …ommandBuffer command_buffer, ImGui_ImplVulkanH_FrameRenderBuffers* rb, int fb_width, int fb_height) in ImGui_ImplVulkan_SetupRenderState() argument
399 viewport.width = (float)fb_width; in ImGui_ImplVulkan_SetupRenderState()
424 int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); 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()
520 if (clip_max.x > fb_width) { clip_max.x = (float)fb_width; } in ImGui_ImplVulkan_RenderDrawData()
Dimgui_impl_metal.mm465 int fb_width = (int)(drawData->DisplaySize.x * drawData->FramebufferScale.x);
467 if (fb_width <= 0 || fb_height <= 0 || drawData->CmdListsCount == 0)
514 if (clip_max.x > fb_width) { clip_max.x = (float)fb_width; }
/third_party/mesa3d/src/panfrost/lib/
Dpan_encoder.h54 unsigned fb_width, unsigned fb_height, in panfrost_tiler_get_polygon_list_size() argument
62 panfrost_choose_hierarchy_mask(fb_width, fb_height, 1, hierarchy); in panfrost_tiler_get_polygon_list_size()
64 return panfrost_tiler_full_size(fb_width, fb_height, hierarchy_mask, hierarchy) + in panfrost_tiler_get_polygon_list_size()
65 panfrost_tiler_header_size(fb_width, fb_height, hierarchy_mask, hierarchy); in panfrost_tiler_get_polygon_list_size()
Dpan_cs.h172 unsigned fb_width, unsigned fb_height,
Dpan_cs.c952 unsigned fb_width, unsigned fb_height, in GENX()
970 if (MAX2(fb_width, fb_height) >= 4096) in GENX()
973 tiler.fb_width = fb_width; in GENX()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_blit.c50 float fb_width = dst->width, fb_height = dst->height; in lima_pack_blit_cmd() local
79 fb_width = job->key.cbuf->width; in lima_pack_blit_cmd()
82 fb_width = job->key.zsbuf->width; in lima_pack_blit_cmd()
144 PLBU_CMD_VIEWPORT_RIGHT(fui(fb_width)); in lima_pack_blit_cmd()
/third_party/mesa3d/src/intel/tools/imgui/
Dimgui_impl_opengl3.cpp104 int fb_width = (int)(draw_data->DisplaySize.x * io.DisplayFramebufferScale.x); 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()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_bitmap.c258 cso_set_viewport_dims(cso, st->state.fb_width, in setup_render_state()
300 const float fb_width = (float) st->state.fb_width; in draw_bitmap_quad() local
308 const float clip_x0 = x0 / fb_width * 2.0f - 1.0f; in draw_bitmap_quad()
310 const float clip_x1 = x1 / fb_width * 2.0f - 1.0f; in draw_bitmap_quad()
658 const float clip_x_scale = 2.0f / st->state.fb_width; in st_DrawAtlasBitmaps()
Dst_cb_clear.c231 const GLfloat fb_width = (GLfloat) fb->Width; in clear_with_quad() local
236 const GLfloat x0 = (GLfloat) ctx->DrawBuffer->_Xmin / fb_width * 2.0f - 1.0f; in clear_with_quad()
237 const GLfloat x1 = (GLfloat) ctx->DrawBuffer->_Xmax / fb_width * 2.0f - 1.0f; in clear_with_quad()
325 cso_set_viewport_dims(st->cso_context, fb_width, fb_height, in clear_with_quad()
Dst_cb_drawtex.c227 const GLfloat fb_width = (GLfloat)_mesa_geometric_width(fb); in st_DrawTex() local
230 const GLfloat clip_x0 = (GLfloat)(x0 / fb_width * 2.0 - 1.0); in st_DrawTex()
232 const GLfloat clip_x1 = (GLfloat)(x1 / fb_width * 2.0 - 1.0); in st_DrawTex()
Dst_atom_scissor.c51 const unsigned int fb_width = _mesa_geometric_width(fb); in st_update_scissor() local
63 scissor[i].maxx = fb_width; in st_update_scissor()
Dst_atom_framebuffer.c217 st->state.fb_width = framebuffer.width; in st_update_framebuffer_state()
Dst_context.h214 unsigned fb_width; member
Dst_cb_drawpixels.c746 const unsigned fb_width = _mesa_geometric_width(ctx->DrawBuffer); in draw_textured_quad() local
898 cso_set_viewport_dims(cso, fb_width, fb_height, TRUE); in draw_textured_quad()
922 const float clip_x0 = x0 / (float) fb_width * 2.0f - 1.0f; in draw_textured_quad()
924 const float clip_x1 = x1 / (float) fb_width * 2.0f - 1.0f; in draw_textured_quad()
/third_party/glfw/examples/
Dsplitview.c409 int wnd_width, wnd_height, fb_width, fb_height; in cursorPosFun() local
413 glfwGetFramebufferSize(window, &fb_width, &fb_height); in cursorPosFun()
415 scale = (double) fb_width / (double) wnd_width; in cursorPosFun()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_state_framebuffer.c416 float fb_width = (float) svga->curr.framebuffer.width; in get_viewport_prescale() local
498 if (fx + fw > fb_width) { in get_viewport_prescale()
499 prescale->scale[0] *= fw / (fb_width - fx); in get_viewport_prescale()
500 prescale->translate[0] -= fx * (fw / (fb_width - fx)); in get_viewport_prescale()
502 fw = fb_width - fx; in get_viewport_prescale()
/third_party/vk-gl-cts/external/amber/src/src/
Dpipeline.h240 void SetFramebufferWidth(uint32_t fb_width) { in SetFramebufferWidth() argument
241 fb_width_ = fb_width; in SetFramebufferWidth()
/third_party/mesa3d/src/gallium/auxiliary/hud/
Dhud_private.h84 unsigned fb_width, fb_height; member
Dhud_context.c473 hud->fb_width = tex->width0; in hud_draw_results()
475 hud->constants.two_div_fb_width = 2.0f / hud->fb_width; in hud_draw_results()
517 fb.width = hud->fb_width; in hud_draw_results()
520 viewport.scale[0] = 0.5f * hud->fb_width; in hud_draw_results()
523 viewport.translate[0] = 0.5f * hud->fb_width; in hud_draw_results()
/third_party/mesa3d/src/gallium/frontends/xa/
Dxa_priv.h100 unsigned int fb_width; member
Dxa_renderer.c355 if (r->fb_width != width || r->fb_height != height) { in renderer_bind_destination()
361 r->fb_width = width; in renderer_bind_destination()

12