Searched refs:swap_chain_desc (Results 1 – 1 of 1) sorted by relevance
50 wgpu::SwapChainDescriptor swap_chain_desc; in getSwapChainForCanvas() local51 swap_chain_desc.format = wgpu::TextureFormat::BGRA8Unorm; in getSwapChainForCanvas()52 swap_chain_desc.usage = wgpu::TextureUsage::RenderAttachment; in getSwapChainForCanvas()53 swap_chain_desc.presentMode = wgpu::PresentMode::Fifo; in getSwapChainForCanvas()54 swap_chain_desc.width = width; in getSwapChainForCanvas()55 swap_chain_desc.height = height; in getSwapChainForCanvas()56 return device.CreateSwapChain(surface, &swap_chain_desc); in getSwapChainForCanvas()