mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-21 11:22:42 +00:00
Build fixes after a bad merge (#2071)
This commit is contained in:
parent
47fb0efb2c
commit
ec8413dfcb
@ -298,7 +298,7 @@ pub(crate) fn collect_zero_buffer_copies_for_clear_texture(
|
||||
|
||||
let bytes_per_row = align_to(
|
||||
// row is at least one block wide, need to round up
|
||||
(mip_size.width + format_desc.block_dimensions.1 as u32 - 1)
|
||||
(mip_size.width + format_desc.block_dimensions.0 as u32 - 1)
|
||||
/ format_desc.block_dimensions.0 as u32
|
||||
* format_desc.block_size as u32,
|
||||
bytes_per_row_alignment,
|
||||
|
@ -62,14 +62,16 @@ static TEXTURE_FORMATS_BC: &[wgpu::TextureFormat] = &[
|
||||
|
||||
// needs TEXTURE_COMPRESSION_ETC2
|
||||
static TEXTURE_FORMATS_ETC2: &[wgpu::TextureFormat] = &[
|
||||
wgpu::TextureFormat::Etc2RgbUnorm,
|
||||
wgpu::TextureFormat::Etc2RgbUnormSrgb,
|
||||
wgpu::TextureFormat::Etc2RgbA1Unorm,
|
||||
wgpu::TextureFormat::Etc2RgbA1UnormSrgb,
|
||||
wgpu::TextureFormat::EacRUnorm,
|
||||
wgpu::TextureFormat::EacRSnorm,
|
||||
wgpu::TextureFormat::EacRgUnorm,
|
||||
wgpu::TextureFormat::EacRgSnorm,
|
||||
wgpu::TextureFormat::Etc2Rgb8Unorm,
|
||||
wgpu::TextureFormat::Etc2Rgb8UnormSrgb,
|
||||
wgpu::TextureFormat::Etc2Rgb8A1Unorm,
|
||||
wgpu::TextureFormat::Etc2Rgb8A1UnormSrgb,
|
||||
wgpu::TextureFormat::Etc2Rgba8Unorm,
|
||||
wgpu::TextureFormat::Etc2Rgba8UnormSrgb,
|
||||
wgpu::TextureFormat::EacR11Unorm,
|
||||
wgpu::TextureFormat::EacR11Snorm,
|
||||
wgpu::TextureFormat::EacRg11Unorm,
|
||||
wgpu::TextureFormat::EacRg11Snorm,
|
||||
];
|
||||
|
||||
// needs TEXTURE_COMPRESSION_ASTC_LDR
|
||||
|
Loading…
Reference in New Issue
Block a user