Using pytorch, calling dr.texture for a texture with an even number of channels gives the error "tex or mip input tensor not aligned to float4" (or "float2" for 2 channels). To reproduce, replace line 34 in samples/torch/earth.py with the following (making the texture 4-channeled and discarding the last channel after texturing; should be perfectly OK):
This seems to be due to this and this line in torch_texture.cpp, where the condition should probably read i <= p.mipLevelMax instead of 0 <= p.mipLevelMax.
Using pytorch, calling
dr.texture
for a texture with an even number of channels gives the error "tex or mip input tensor not aligned to float4" (or "float2" for 2 channels). To reproduce, replace line 34 insamples/torch/earth.py
with the following (making the texture 4-channeled and discarding the last channel after texturing; should be perfectly OK):This seems to be due to this and this line in
torch_texture.cpp
, where the condition should probably readi <= p.mipLevelMax
instead of0 <= p.mipLevelMax
.