Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support texture-compression-bc-sliced-3d in wgpu #5751

Merged
merged 25 commits into from
Aug 10, 2024
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift click to select a range
3580be7
Enable compressed formats in wgpu for 3D textures
mehmetoguzderin May 28, 2024
87a36d1
Use `align_to` for rounding
mehmetoguzderin May 29, 2024
3456c25
Case rounded sizes according if uncompressed
mehmetoguzderin May 29, 2024
8413a04
Please see https://github.com/gpuweb/gpuweb/pull/4685
mehmetoguzderin May 30, 2024
8fc7489
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin May 30, 2024
42b202d
Please see https://github.com/gpuweb/gpuweb/pull/4685
mehmetoguzderin May 30, 2024
d9e4d73
Please see https://github.com/gpuweb/gpuweb/pull/4685
mehmetoguzderin May 30, 2024
99f1b9a
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin May 30, 2024
a7ebdf2
Update lib.rs
mehmetoguzderin May 31, 2024
533629c
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin Jun 1, 2024
b0a5c05
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin Jun 3, 2024
bd21ec6
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin Jun 3, 2024
e5ac970
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin Jun 4, 2024
c72af0c
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin Jul 26, 2024
65be71e
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin Jul 30, 2024
237c1b7
Move into extension
mehmetoguzderin Jul 30, 2024
c76dc29
Format deno directory
mehmetoguzderin Jul 30, 2024
a747de8
WASM Clippy Fix
mehmetoguzderin Jul 30, 2024
1fd2ddf
Make comments single line
mehmetoguzderin Jul 30, 2024
c035e83
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin Aug 4, 2024
9e8b74c
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin Aug 5, 2024
1bd768f
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin Aug 5, 2024
1f01ac0
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin Aug 6, 2024
5bb449e
Merge branch 'trunk' into oguz-20240530-compress3d
mehmetoguzderin Aug 8, 2024
e690729
Update command and flag in order
mehmetoguzderin Aug 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Case rounded sizes according if uncompressed
  • Loading branch information
mehmetoguzderin committed May 29, 2024
commit 3456c25780bb0ed6a42ed13218e158f3ab7dd9df
12 changes: 10 additions & 2 deletions tests/tests/clear_texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 267,16 @@ async fn single_texture_clear_test(
async fn clear_texture_tests(ctx: TestingContext, formats: &'static [wgpu::TextureFormat]) {
for &format in formats {
let (block_width, block_height) = format.block_dimensions();
let rounded_width = wgpu::util::align_to(block_width, wgpu::COPY_BYTES_PER_ROW_ALIGNMENT);
let rounded_height = wgpu::util::align_to(block_height, wgpu::COPY_BYTES_PER_ROW_ALIGNMENT);
let rounded_width = if block_width == 1 {
wgpu::COPY_BYTES_PER_ROW_ALIGNMENT
} else {
block_width
};
let rounded_height = if block_height == 1 {
wgpu::COPY_BYTES_PER_ROW_ALIGNMENT
} else {
block_height
};
teoxoy marked this conversation as resolved.
Show resolved Hide resolved

let is_compressed_or_depth_stencil_format =
format.is_compressed() || format.is_depth_stencil_format();
Expand Down
Loading