# How to debug the Texture object?

**URL:** <https://forums.kodeco.com/t/how-to-debug-the-texture-object/44399>\
**Category:** Metal by Tutorials\
**Created:** [July 6, 2018, 10:24am UTC](https://forums.kodeco.com/t/how-to-debug-the-texture-object/44399 "2018-07-06T10:24:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![008v](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/008v/32/81494_2.png) [@008v](https://forums.kodeco.com/u/008v)\
**Post date:** [July 6, 2018, 10:24am UTC](https://forums.kodeco.com/t/how-to-debug-the-texture-object/44399/1 "2018-07-06T10:24:55Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 6, 2018, 10:48am UTC](https://forums.kodeco.com/t/how-to-debug-the-texture-object/44399/2 "2018-07-06T10:48:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![caroline](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/caroline/32/111867_2.png) [@caroline](https://forums.kodeco.com/u/caroline)\
**Post date:** [July 6, 2018, 11:51am UTC](https://forums.kodeco.com/t/how-to-debug-the-texture-object/44399/3 "2018-07-06T11:51:56Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![008v](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/008v/32/81494_2.png) [@008v](https://forums.kodeco.com/u/008v)\
**Post date:** [July 6, 2018, 5:27pm UTC](https://forums.kodeco.com/t/how-to-debug-the-texture-object/44399/4 "2018-07-06T17:27:49Z")

</div>

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