• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 17 18 19 20 21 ... 111 Next »

Question regarding custom texture naming
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Question regarding custom texture naming
05-12-2017, 01:19 PM
#1
Invader Offline
Forum Lurker
****
Posts: 403
Threads: 14
Joined: Sep 2011
Quick question. What determines the last value in the custom texture name? For example, say I had a texture named "tex1_128x80_82b715de21fcb30d_14.png".

As you can see there's a 14 at the end of the filename. Is this the texture format (CMPR, I4, etc.)? Or is it related to something else entirely?

Thanks in advance! Smile
[Image: 3qpbaX8.png]
Find
Reply
05-12-2017, 09:22 PM (This post was last modified: 05-12-2017, 09:23 PM by degasus.)
#2
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,828
Threads: 10
Joined: May 2012
The string is generated here: https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/VideoCommon/HiresTextures.cpp#L282 -- so it is the format of the texture. Those formats are defined here: https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/VideoCommon/TextureDecoder.h#L17 -- 14 is GX_TF_CMPR, which is the compressed texture format of the emulated GPU.
Find
Reply
05-13-2017, 02:18 AM
#3
Invader Offline
Forum Lurker
****
Posts: 403
Threads: 14
Joined: Sep 2011
(05-12-2017, 09:22 PM)degasus Wrote: The string is generated here: https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/VideoCommon/HiresTextures.cpp#L282 -- so it is the format of the texture. Those formats are defined here: https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/VideoCommon/TextureDecoder.h#L17 -- 14 is GX_TF_CMPR, which is the compressed texture format of the emulated GPU.

Thank you very much! Smile
[Image: 3qpbaX8.png]
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode