Reduce path atlas size by using a single channel for the texture
This commit is contained in:
parent
e0c43dac25
commit
5f1f49b011
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ impl Renderer {
|
|||
);
|
||||
|
||||
let sprite_cache = SpriteCache::new(device.clone(), vec2i(1024, 768), fonts);
|
||||
let path_atlases = build_path_atlas_allocator(pixel_format, &device);
|
||||
let path_atlases = build_path_atlas_allocator(MTLPixelFormat::R8Unorm, &device);
|
||||
let quad_pipeline_state = build_pipeline_state(
|
||||
&device,
|
||||
&library,
|
||||
|
@ -96,7 +96,7 @@ impl Renderer {
|
|||
"path_atlas",
|
||||
"path_atlas_vertex",
|
||||
"path_atlas_fragment",
|
||||
pixel_format,
|
||||
MTLPixelFormat::R8Unorm,
|
||||
)?;
|
||||
Ok(Self {
|
||||
sprite_cache,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue