Skip to content

Commit

Permalink
Assign size to NV12 texture format
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrasnitski committed Feb 1, 2024
1 parent bb711b5 commit 7bc8a32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ const fn texture_format_size(texture_format: wgpu::TextureFormat) -> f32 {
// 12x12 blocks, 16 bytes per block
Astc { block: B12x12, channel: _ } => 9.0, // 12.0 * 12.0 / 16.0

NV12 => todo!(),
// 8-bit two-plane 4:2:0 YUV
NV12 => 3.0, // (8.0 + 16.0) / 8.0
}
}

0 comments on commit 7bc8a32

Please sign in to comment.