Skip to content

Set mipLevelCount and arrayLayerCount to 0 in TextureViewDescriptor by default#407

Merged
kainino0x merged 3 commits intogpuweb:masterfrom
Jiawei-Shao:cover-all-miplevels-by-default
Aug 22, 2019
Merged

Set mipLevelCount and arrayLayerCount to 0 in TextureViewDescriptor by default#407
kainino0x merged 3 commits intogpuweb:masterfrom
Jiawei-Shao:cover-all-miplevels-by-default

Conversation

@Jiawei-Shao
Copy link
Copy Markdown
Contributor

@Jiawei-Shao Jiawei-Shao commented Aug 13, 2019

The default value of mipLevelCount and arrayLayerCount should be 0 in
TextureViewDescriptor to specify the texture view will cover all the
mipmap levels and array layers of the original texture when base mipmap
level and base array layer is also 0.


Preview | Diff

…reViewDescriptor

The default value of mipLevelCount and arrayLayerCount should be 0 in
TextureViewDescriptor to specify the texture view will cover all the
mipmap levels and array layers of the original texture when base mipmap
level and base array layer is also 0.
spec/index.bs Outdated
</script>

* {{GPUTextureViewDescriptor/mipLevelCount}}:
If mipLevelCount == 0, baseMipLevel must also be 0 and the texture view will cover all the mipmap levels of the original texture.
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.

We don't actually need this restriction. We could say that the mipLevelCount, if 0, covers all the mips starting from the baseMipLevel

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

@kainino0x
Copy link
Copy Markdown
Contributor

Looks good; merging with 2 spec editor reviews. Thanks!

@kainino0x kainino0x merged commit 767e515 into gpuweb:master Aug 22, 2019
@Jiawei-Shao Jiawei-Shao deleted the cover-all-miplevels-by-default branch May 19, 2020 04:19
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
* Port all the remaining docs from HackMD and wiki

* address comments
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