Skip to content

Commit

Permalink
igl | tests | Assign debug names to textures
Browse files Browse the repository at this point in the history
Summary: Assign debug names to textures.

Reviewed By: EricGriffith

Differential Revision: D49175940

fbshipit-source-id: 066d01c5aba1623c79248ad9c424f1060b211334
  • Loading branch information
corporateshark authored and facebook-github-bot committed Sep 13, 2023
1 parent 39d2263 commit ae1ed3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/igl/tests/util/TextureFormatTestBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ void TextureFormatTestBase::testUsage(std::pair<TextureFormat, bool> formatSuppo
IGL_LOG_INFO("%s: Testing %s\n", usageName, properties.name);
auto texDesc =
TextureDesc::new2D(textureFormat, OFFSCREEN_TEX_WIDTH, OFFSCREEN_TEX_HEIGHT, usage);
texDesc.debugName = std::string("TextureFormatTestBase:") + usageName + ":" + properties.name;
if (iglDev_->getBackendType() == BackendType::Metal && properties.isDepthOrStencil()) {
texDesc.storage = ResourceStorage::Private;
}
Expand Down

0 comments on commit ae1ed3e

Please sign in to comment.