directx - How to create two 2dTextures using d3d11Device? -
i creating 2 2dtextures in d3d11 this: m_device->createtexture2d(&d3d11tex, null, &tex1); m_device->createtexture2d(&d3d11tex, null, &tex2);
d3d11tex.arraysize = 1;//currently using read value can kept two.
but how 2 textures. keeping arrasize 2 give me 2 textures in tex1 , tex2? or tex1 array of size two.
any on appreciated. in advance.
tex1
, tex2
independent resources have bound distinct shader resource slots. if make 1 of them 2d texture array, still have 2 shader resources, 1 of them has room 2 2d textures in array.
note 2d texture arrays require feature level 10.0 or better hardware. call fail on system feature level 9.1, 9.2, or 9.3 device (i.e. surface rt, surface rt 2, windows phone 8, shader model 2.0 video card, etc.).
Comments
Post a Comment