in OptiX 7.0.0 SDK project “sutil_7_sdk” file Scene.cpp
in Scene::addImage() in line 476
cudaCreateChannelDesc<uchar4>();
is also used for 16bit textures.
From the CUDA docs I found:
cudaCreateTextureObject() creates the texture object from the resource description … “cudaResourceDesc”.
And in Scene::addSampler() that resource description uses then also that cuda array (built with the uchar4 channel description) on a 16bit texture…
Is there an internal conversion? Or is this intended?
so for 16bit textures I would expect :
cudaCreateChannelDesc<ushort4>(void)
Or I am wrong?