Skip to main content
GameDev.net gamedev.net
🔒 Locked

Cube Texture Slots

Started by L. Spiro Jun 2, 2012 at 8:40 AM 0 replies 950+ views
Original Post
L. Spiro
L. Spiro
In OpenGL, a 2D texture and a cube texture can both be in unit/slot 0 (etc.)
Since there is only SetTexture(), is this not the case in Direct3D 9? Do cube textures have to be in a fully non-occupied slot or is there a way to emulate the OpenGL behavior?


L. Spiro
I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid
Ripiz
Ripiz
I used to think HLSL texture variable is similar to pointer - it can have only one value, meaning it's either 2D or cube texture. Never thought OpenGL would have such behaviour.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.