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

Method determineSourceOrigin

tools/ktx/command_create.cpp:2806–2813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2804}
2805
2806void CommandCreate::determineSourceOrigin(const ImageInput& in, ImageSpec::Origin& usedSourceOrigin) {
2807
2808 if (options.assignTexcoordOrigin.has_value()) {
2809 usedSourceOrigin = options.assignTexcoordOrigin.value();
2810 } else {
2811 usedSourceOrigin = in.spec().origin();
2812 }
2813}
2814
2815void CommandCreate::determineTargetOrigin(const ImageInput& in, ImageSpec& target,
2816 ImageSpec::Origin& usedSourceOrigin) {

Callers

nothing calls this directly

Calls 2

specMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected