Skip to content

Add more clarifications in "Depth/stencil formats"#1463

Merged
kvark merged 2 commits intogpuweb:mainfrom
Jiawei-Shao:fix-typo-depth-stencil
Mar 1, 2021
Merged

Add more clarifications in "Depth/stencil formats"#1463
kvark merged 2 commits intogpuweb:mainfrom
Jiawei-Shao:fix-typo-depth-stencil

Conversation

@Jiawei-Shao
Copy link
Copy Markdown
Contributor

@Jiawei-Shao Jiawei-Shao commented Feb 24, 2021

Copy link
Copy Markdown
Contributor

@kainino0x kainino0x left a comment

Choose a reason for hiding this comment

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

good catch. IMO the language still needs some clarification though, so how about this? @kvark

Co-authored-by: Kai Ninomiya <kainino1@gmail.com>
@Jiawei-Shao Jiawei-Shao changed the title Fix a typo in "Depth/stencil formats" Add more clarifications in "Depth/stencil formats" Feb 24, 2021
@kainino0x kainino0x requested a review from kvark February 24, 2021 05:44
- {{GPUTextureFormat/depth24plus}}, {{GPUTextureFormat/depth24plus-stencil8}} (depth aspect)

The {{GPUTextureFormat/depth32float}} format can only the destination if copied from another texture of the same format. It can also be a source of copies into {{GPUTextureFormat/r32float}}.
Additionally, {{GPUTextureFormat/depth32float}} textures can be copied into {{GPUTextureFormat/depth32float}} and {{GPUTextureFormat/r32float}} textures.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This says depth32float can be copied into depth32float which doesn't seem super helpful to have in addition to other rules. Did we mean depth32float-stencil8?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No, this was my intent. Are you saying we don't need to specify it because copies within the same format are always valid? I'd argue the list just above this one also specifies copies within the same format are valid, but isn't as explicit.

The point is that nothing can copy into depth32float except for depth32float.

I forgot about depth32float-stencil8, it's not even mentioned anywhere in this section yet, but it needs to be.

Copy link
Copy Markdown
Contributor

@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.

No other concerns than what @Kangz requested

Copy link
Copy Markdown
Contributor

@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.

Agreed to land and iterate.

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.

4 participants