MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / validateNamedFile

Function validateNamedFile

tools/ktx/validate.cpp:352–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352int validateNamedFile(const std::string& filepath, bool warningsAsErrors, bool GLTFBasisU, std::function<void(const ValidationReport&)> callback) {
353 try {
354 ValidationContextIOStream ctx{warningsAsErrors, GLTFBasisU, std::move(callback), filepath};
355 return ctx.validate();
356 } catch (const FatalValidationError&) {
357 return +rc::INVALID_FILE;
358 }
359}
360
361int validateStdioStream(FILE* file, const std::string& filepath, bool warningsAsErrors, bool GLTFBasisU, std::function<void(const ValidationReport&)> callback) {
362 try {

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected