MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXNTC / AnyBlockCompressedTextures

Function AnyBlockCompressedTextures

tools/cli/NtcCommandLine.cpp:1782–1793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1780}
1781
1782bool AnyBlockCompressedTextures(ntc::ITextureSetMetadata* textureSetMetadata)
1783{
1784 for (int textureIndex = 0; textureIndex < textureSetMetadata->GetTextureCount(); ++textureIndex)
1785 {
1786 ntc::ITextureMetadata* textureMetadata = textureSetMetadata->GetTexture(textureIndex);
1787 if (textureMetadata->GetBlockCompressedFormat() != ntc::BlockCompressedFormat::None)
1788 {
1789 return true;
1790 }
1791 }
1792 return false;
1793}
1794
1795class CustomAllocator : public ntc::IAllocator
1796{

Callers 1

mainFunction · 0.85

Calls 1

GetTextureMethod · 0.80

Tested by

no test coverage detected