Sitelet https://github.com/gpuweb/gpuweb/pull/222
Skip to content

Change GPUTextureAspect to an enum - #222

Merged
kainino0x merged 1 commit into
gpuweb:masterfrom
Kangz:aspect
Mar 28, 2019
Merged

kainino0x merged 1 commit into
gpuweb:masterfrom
Kangz:aspect

Conversation

@Kangz

@Kangz Kangz commented Feb 28, 2019

Copy link
Copy Markdown
Contributor

The only valid combinations for the bitmask represented either
everything (color or depth+stencil) or just depth / just stencil.

Change it to an enum to better reflect that.

@kvark

kvark commented Feb 28, 2019

Copy link
Copy Markdown
Contributor

Semantically, I find the original flags to be cleaner.
The benefit of your PR though is a good default for the aspect.

Comment thread design/sketch.webidl
@kainino0x

Copy link
Copy Markdown
Contributor

I'm pretty neutral on this.
I might do "color-depth-stencil" "depth" "stencil"?

@grorg

grorg commented Mar 4, 2019

Copy link
Copy Markdown
Contributor

Discussed in the 4 March 2019 meeting

Comment thread design/sketch.webidl Outdated
enum GPUTextureAspect {
"everything",
"just-stencil",
"just-depth"

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.

Consider all/depth-only/stencil-only.

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.

+1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

The only valid combinations for the bitmask represented either
everything (color or depth+stencil) or just depth / just stencil.

Change it to an enum to better reflect that.

@kainino0x kainino0x left a comment

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.

@kvark @litherum any further comments?

@kainino0x
kainino0x merged commit 6195771 into gpuweb:master Mar 28, 2019
@Kangz
Kangz deleted the aspect branch April 23, 2019 12:57
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
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.

6 participants