mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 17:01:15 +01:00
[rs] Use opaque texels in mipmap example
This commit is contained in:
1 parent
0b20277396
commit
3a121231b7
1 file changed
+1
-1
@@ -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