| 1608 | ntc::Status ntcStatus = context->OpenFile(inputFileName, false, inputStream.ptr()); |
| 1609 | if (ntcStatus != ntc::Status::Ok) |
| 1610 | { |
| 1611 | fprintf(stderr, "Failed to open input file '%s', code = %s: %s\n", inputFileName, |
| 1612 | ntc::StatusToString(ntcStatus), ntc::GetLastErrorMessage()); |
| 1613 | return false; |
| 1614 | } |
| 1615 | |
| 1616 | ntc::TextureSetMetadataWrapper metadata(context); |
| 1617 | ntcStatus = context->CreateTextureSetMetadataFromStream(inputStream, metadata.ptr()); |
| 1618 | if (ntcStatus != ntc::Status::Ok) |
| 1619 | { |
| 1620 | fprintf(stderr, "Failed to load texture set metadata from '%s', code = %s: %s\n", inputFileName, |
| 1621 | ntc::StatusToString(ntcStatus), ntc::GetLastErrorMessage()); |
| 1622 | return false; |
| 1623 | } |
| 1624 | |
| 1625 | OptixDecompressor optixDecompressor(context, metadata.Get(), inputStream.Get()); |
no test coverage detected