Skip to content

Commit

Permalink
check TextureView and Texture format (#17143)
Browse files Browse the repository at this point in the history
  • Loading branch information
minggo authored Jun 13, 2024
1 parent c360a37 commit c7d609b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions native/cocos/renderer/gfx-validator/TextureValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ void TextureValidator::doInit(const TextureViewInfo &info) {
_inited = true;
_isTextureView = true;
CC_ASSERT(info.texture && static_cast<TextureValidator *>(info.texture)->isInited());
// TextureView format should equal to the corresponding Texture format.
CC_ASSERT(info.texture->getFormat() == info.format);

/////////// execute ///////////

Expand Down

0 comments on commit c7d609b

Please sign in to comment.