Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Jiawei-Shao
Copy link
Contributor

@Jiawei-Shao Jiawei-Shao commented May 21, 2020

This patch adds validation to disallow using cube map and cube map array
texture views as storage textures as HLSL doesn't support RWTextureCube
or RWTextureCubeArray, and Load() function cannot be called on TextureCube
or TextureCubeArray.


Preview | Diff

…xtures

This patch adds validation to disallow using cube map and cube map array
texture views as storage textures as HLSL doesn't support RWTextureCube
or RWTextureCubeArray, and Load() function cannot be called on TextureCube
or TextureCubeArray.
@Jiawei-Shao
Copy link
Contributor Author

Hi WebGPU CG,

I find in WebGPU we should not allow cube map and cube map array texture views being used as storage textures (read-only and write-only) and declaring imageCube and imageCubeArray in shaders because of the limitations in HLSL.

In HLSL function Load() is not allowed on TextureCube and TextureCubeArray according to the related Microsoft document. HLSL also doesn't support "RWTextureCube" and "RWTextureCubeArray".

Copy link
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.

Looks totally reasonable, thank you!

@kainino0x
Copy link
Contributor

Marking this as Needs Discussion just to bring it to people's attention it in the meeting. I don't think we will actually have anything to talk about.

@kdashg
Copy link
Contributor

kdashg commented Jun 1, 2020

Agreed in meeting 2020-06-01.

@kainino0x kainino0x merged commit 57c4179 into gpuweb:master Jun 1, 2020
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