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

Function LoadCompressedTextureSet

tools/cli/NtcCommandLine.cpp:1590–1608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1588}
1589
1590ntc::ITextureSet* LoadCompressedTextureSet(ntc::IContext* context)
1591{
1592 ntc::ITextureSet* textureSet = nullptr;
1593 ntc::TextureSetFeatures textureSetFeatures;
1594 textureSetFeatures.enableCompression = false;
1595 textureSetFeatures.stagingBytesPerPixel = 16;
1596
1597 ntc::Status ntcStatus = context->CreateCompressedTextureSetFromFile(
1598 g_options.loadCompressedFileName, textureSetFeatures, &textureSet);
1599
1600 if (ntcStatus != ntc::Status::Ok)
1601 {
1602 fprintf(stderr, "Failed to load compressed texture from file '%s', code = %s\n%s\n",
1603 g_options.loadCompressedFileName, ntc::StatusToString(ntcStatus), ntc::GetLastErrorMessage());
1604 return nullptr;
1605 }
1606
1607 return textureSet;
1608}
1609
1610donut::app::DeviceCreationParameters GetGraphicsDeviceParameters(nvrhi::GraphicsAPI graphicsApi)
1611{

Callers 3

InitMethod · 0.85
buildUIMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected