Jump to content
  • Advertisement
Sign in to follow this  
Idono87

D3D11 ShaderResourceView

This topic is 2532 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I started programming with DX11 last week (bought a book). And i've come to 2D Rendering with D3D, more specific, i've finished that chapter. Now i'm doing the exercises on that chapter, one of them is about loading in an extra image and use it as a second sprite.

I can't get my head around the "D3D11ShaderResourceView"(SRV) completly. I understand that it's used to bind the loaded texture so that it's data can be accessed. But i can't seem to find anything describing if it's just one texture per SRV or if i can use the same SRV for multiple textures.

Share this post


Link to post
Share on other sites
Advertisement
Didn't try it but i would say yes. A D3D11_TEX2D_ARRAY_SRV wouldn't make much sense if it's not consisting of more than one texture.

Source:
http://msdn.microsoft.com/en-us/library/ff476211%28v=vs.85%29.aspx


"ArraySize
Type: UINT
Number of textures in the array."
(http://msdn.microsoft.com/en-us/library/ff476227%28v=vs.85%29.aspx)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!