mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Merge #264
264: Use opaque texels in mipmap example r=kvark a=grovesNL This fixes rendering for the mipmap example in Nightly Co-authored-by: Joshua Groves <josh@joshgroves.com>
This commit is contained in:
@@ -52,7 +52,7 @@ fn create_texels(size: usize, cx: f32, cy: f32) -> Vec<u8> {
|
||||
iter::once(0xFF - (count * 2) as u8)
|
||||
.chain(iter::once(0xFF - (count * 5) as u8))
|
||||
.chain(iter::once(0xFF - (count * 13) as u8))
|
||||
.chain(iter::once(1))
|
||||
.chain(iter::once(std::u8::MAX))
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user