-
Notifications
You must be signed in to change notification settings - Fork 965
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
Add Stencil8 and Rgb9e5uFloat texture formats #955
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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, |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
@lachlansneff can we revive and land this, please? |
Can we revive and land this, please? |
Sure thing, will do this evening if I have time. Sorry about the delay. |
ping! |
Bump from triage :) |
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. |
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>
Connections
matrix
Description
This adds Stencil8 and Rgb9e5uFloat texture formats.
Testing
No testing required, afaik.