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

Function GetGraphicsDeviceParameters

tools/cli/NtcCommandLine.cpp:1610–1622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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());

Callers 1

mainFunction · 0.70

Calls 1

Tested by

no test coverage detected