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

Function GetContainerChannelFormat

tools/cli/Utils.cpp:176–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176ntc::ChannelFormat GetContainerChannelFormat(ImageContainer container)
177{
178 switch(container)
179 {
180 case ImageContainer::Auto:
181 default:
182 return ntc::ChannelFormat::UNKNOWN;
183 case ImageContainer::BMP:
184 case ImageContainer::JPG:
185 case ImageContainer::PNG:
186 case ImageContainer::TGA:
187 return ntc::ChannelFormat::UNORM8;
188 case ImageContainer::EXR:
189 return ntc::ChannelFormat::FLOAT32;
190 case ImageContainer::PNG16:
191 return ntc::ChannelFormat::UNORM16;
192 }
193}
194
195char const* GetContainerExtension(ImageContainer container)
196{

Callers 1

SaveImagesFromTextureSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected