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

Add Stencil8 and Rgb9e5uFloat texture formats #955

Closed

Conversation

lachlansneff
Copy link
Contributor

Connections
matrix

Description
This adds Stencil8 and Rgb9e5uFloat texture formats.

Testing
No testing required, afaik.

Copy link
Contributor

@monocodus monocodus bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an autogenerated code review.

Checker summary (by rust_clippy):
The tool has found 0 warnings, 1 errors.

Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!
Just one important piece is missing

@@ -383,6 +384,7 @@ pub(crate) fn map_texture_format(
H::D32SfloatS8Uint
}
}
Tf::Stencil8 => H::S8Uint,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this conditional on what the adapter supports. See how it's done for Depth24Plus. Here, we'd need even more choices: it will be S8Uint, or D24UnormS8Uint, or D32SfloatS8Uint.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing, will make this change. I'm probably going to be predisposed until this weekend, sorry for the delay.

@kvark
Copy link
Member

kvark commented Nov 25, 2020

@lachlansneff can we revive and land this, please?

@kvark
Copy link
Member

kvark commented Mar 17, 2021

Can we revive and land this, please?

@lachlansneff
Copy link
Contributor Author

Sure thing, will do this evening if I have time. Sorry about the delay.

@kvark
Copy link
Member

kvark commented Mar 29, 2021

ping!

@cwfitzgerald
Copy link
Member

Bump from triage :)

@cwfitzgerald
Copy link
Member

I'm going to close this as it will need to be completely recreated for wgpu-hal. #1703 covers Rgb9e5UFloat, but Stencil8 still isn't implemented.

bors bot added a commit that referenced this pull request Jul 22, 2021
1703: Add Rgb9e5Ufloat Format r=kvark a=cwfitzgerald

**Connections**

Addresses part of #967, a wgpu-hal followup to #955.

**Description**

This adds only `Rgb9e5Ufloat`. I removed the explicit numbering from the texture format so we don't have to constantly re-number things. The default numbering is identical to what we were doing.

**Testing**

All backends unconditionally support it, so little testing is needed.


Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants