MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / bake

Function bake

tools/imposter-baker/src/render.rs:53–55  ·  view source on GitHub ↗
(opts: BakeOptions<'_>)

Source from the content-addressed store, hash-verified

51const DEPTH_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float;
52
53pub fn bake(opts: BakeOptions<'_>) -> Result<BakedAtlas, String> {
54 pollster::block_on(bake_async(opts))
55}
56
57async fn bake_async(opts: BakeOptions<'_>) -> Result<BakedAtlas, String> {
58 let instance = wgpu::Instance::new(wgpu::InstanceDescriptor {

Callers 1

mainFunction · 0.85

Calls 1

bake_asyncFunction · 0.85

Tested by

no test coverage detected