Home
last modified time | relevance | path

Searched refs:swap_chain_desc (Results 1 - 2 of 2) sorted by relevance

/third_party/skia/third_party/externals/imgui/examples/example_emscripten_wgpu/
H A Dmain.cpp149 WGPUSwapChainDescriptor swap_chain_desc = {}; in main_loop() local
150 swap_chain_desc.usage = WGPUTextureUsage_RenderAttachment; in main_loop()
151 swap_chain_desc.format = WGPUTextureFormat_RGBA8Unorm; in main_loop()
152 swap_chain_desc.width = width; in main_loop()
153 swap_chain_desc.height = height; in main_loop()
154 swap_chain_desc.presentMode = WGPUPresentMode_Fifo; in main_loop()
155 wgpu_swap_chain = wgpuDeviceCreateSwapChain(wgpu_device, wgpu_surface, &swap_chain_desc); in main_loop()
/third_party/skia/experimental/webgpu-bazel/src/
H A Dbindings.cpp66 wgpu::SwapChainDescriptor swap_chain_desc; in getSwapChainForCanvas() local
67 swap_chain_desc.format = wgpu::TextureFormat::BGRA8Unorm; in getSwapChainForCanvas()
68 swap_chain_desc.usage = wgpu::TextureUsage::RenderAttachment; in getSwapChainForCanvas()
69 swap_chain_desc.presentMode = wgpu::PresentMode::Fifo; in getSwapChainForCanvas()
70 swap_chain_desc.width = width; in getSwapChainForCanvas()
71 swap_chain_desc.height = height; in getSwapChainForCanvas()
72 return device.CreateSwapChain(surface, &swap_chain_desc); in getSwapChainForCanvas()

Completed in 2 milliseconds