Original Post
Hi,
I'm currently trying to make my own version of Tetris using Direct3D 11 (First game
). I have no problem putting 1 texture on the screen at a time, but I am creating a ID3D11ShaderResourceView per texture. I don't think that is very efficient. I saw that a ID3D11ShaderResourceView can have an array of 2D textures loaded into it.
Can I draw 1 texture at a time from the ID3D11ShaderResourceView?
If so, how can I specify which texture I want to draw from the ID3D11ShaderResourceView?
Sorry If I'm misunderstanding what it's supposed to be used for. Still new to graphics programming.
Thanks,
Vince
I'm currently trying to make my own version of Tetris using Direct3D 11 (First game
Can I draw 1 texture at a time from the ID3D11ShaderResourceView?
If so, how can I specify which texture I want to draw from the ID3D11ShaderResourceView?
Sorry If I'm misunderstanding what it's supposed to be used for. Still new to graphics programming.
Thanks,
Vince