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

Method SaveCompressedTextureSet

tools/explorer/NtcExplorer.cpp:1995–2012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1993 }
1994
1995 void SaveCompressedTextureSet(const char* fileName) const
1996 {
1997 ntc::Status ntcStatus = m_textureSet->ConfigureLosslessCompression(GetLosslessCompressionParams());
1998 if (ntcStatus != ntc::Status::Ok)
1999 {
2000 log::error("Call to ConfigureLosslessCompression failed, code = %s: %s",
2001 ntc::StatusToString(ntcStatus), ntc::GetLastErrorMessage());
2002 return;
2003 }
2004
2005 ntcStatus = m_textureSet->SaveToFile(fileName);
2006 if (ntcStatus != ntc::Status::Ok)
2007 {
2008 log::error("Failed to save texture set to file '%s', code = %s: %s", fileName,
2009 ntc::StatusToString(ntcStatus), ntc::GetLastErrorMessage());
2010 return;
2011 }
2012 }
2013
2014 void SaveManifestToFile(const char* fileName) const
2015 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected