How to debug the Texture object?

I found that the texture that I created with the MTKTextureLoader is flipped up and down and left and right. Why?

How to debug the Texture object ?

@caroline Can you please help with this when you get a chance? Thank you - much appreciated! :]

@008v - are you following the book? If not, are you using your own texture? Where did the texture come from? How did you create it?

You can specify in both the asset catalog and MTKTextureLoader whether the origin of the texture is top left or bottom left.

Also, at various times, Xcode has changed the default for the origin. It still seems the same between Xcode 9 and 10 though.

The problem has been solved. As you said, the MTKTextureLoader has an option called origin.

1 Like