| 1588 | } |
| 1589 | |
| 1590 | ntc::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 | |
| 1610 | donut::app::DeviceCreationParameters GetGraphicsDeviceParameters(nvrhi::GraphicsAPI graphicsApi) |
| 1611 | { |