Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


michaelmk86

Member Since 14 Feb 2012
Offline Last Active Aug 08 2013 06:16 PM

#5065553 [SharpDX]Loading Multiple Images into a Texture Array

Posted by michaelmk86 on 28 May 2013 - 12:11 PM

The simplest way i can think of is this

 

ID3D11ShaderResourceView*  textures[10];

for(int i=0; i<10; i++)
   D3DX11CreateShaderResourceViewFromFile(device, fileName[i], NULL, NULL, &textures[i], NULL);

ID3D11DeviceContext* deviceContext;

deviceContext->PSSetShaderResources(0, 10, textures);

not sure if this is what you are asking.




#5063349 Convert std::string to WCHAR ?

Posted by michaelmk86 on 20 May 2013 - 05:46 PM

I am trying to do this:

std::string s;

WCHAR w = s;

Also what do you mean what platform i am using?




#5063342 Convert std::string to WCHAR ?

Posted by michaelmk86 on 20 May 2013 - 05:18 PM

^ title




PARTNERS