MCPcopy Create free account
hub / github.com/defold/defold / WebGPUResizeWindow

Function WebGPUResizeWindow

engine/graphics/src/webgpu/graphics_webgpu.cpp:1571–1581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1569}
1570
1571static void WebGPUResizeWindow(HContext _context, uint32_t width, uint32_t height)
1572{
1573 TRACE_CALL;
1574 assert(_context);
1575 WebGPUContext* context = (WebGPUContext*)_context;
1576 if (dmPlatform::GetWindowStateParam(context->m_BaseContext.m_Window, WINDOW_STATE_OPENED))
1577 {
1578 dmPlatform::SetWindowSize(context->m_BaseContext.m_Window, width, height);
1579 WebGPUConfigure(context, width, height);
1580 }
1581}
1582
1583static void WebGPUGetDefaultTextureFilters(HContext _context, TextureFilter& out_min_filter, TextureFilter& out_mag_filter)
1584{

Callers

nothing calls this directly

Calls 4

WebGPUConfigureFunction · 0.85
assertFunction · 0.50
GetWindowStateParamFunction · 0.50
SetWindowSizeFunction · 0.50

Tested by

no test coverage detected