Horde3D

Next-Generation Graphics Engine
It is currently 17.09.2025, 02:06

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 09.06.2010, 06:24 
Offline

Joined: 13.07.2009, 04:53
Posts: 2
When mapping a texture as a stream, you get the format from the TextureElem, but then to actually get a pointer to the data you use the ImageElem, and likewise you get the size from the ImageElem. But if it has multiple slices, you get the number of slices from the TextureElem. This is really confusing. Why not just fold the properties of the TextureElem into the ImageElem?


Top
 Profile  
Reply with quote  
PostPosted: 15.06.2010, 21:58 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Well, there is a system to it. A texture can have subresources (mip maps or cube map faces) which are the image elements. The format must be the same for all subresources, that's why it is stored in the texture element. The dimensions (width, height) can be different for each subresource (e.g. mip maps). The number of slices belongs of course to the container (which is the texture element).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group