Jump to content

  • Log In with Google      Sign In   
  • Create Account

using D3D10_SUBRESOURCE_DATA on 2DTexture


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 lomateron   Members   -  Reputation: 342

Like
0Likes
Like

Posted 26 June 2012 - 03:02 AM

I want to fill a 2Dtexture with an array D3DXVECTOR4 p[100];
so i fill the array with values, then if the texture is 10x10:

D3D10_SUBRESOURCE_DATA initData;
initData.pSysMem = p;
initData.SysMemPitch = sizeof(D3DXVECTOR4)*10;

is that correct?

My texture just has 1 mip level, sample count 1 and quality 0

Edited by lomateron, 26 June 2012 - 04:06 AM.


Sponsor:

#2 MJP   Moderators   -  Reputation: 11352

Like
0Likes
Like

Posted 26 June 2012 - 04:04 PM

Yes that should be fine, as long as your format is DXGI_FORMAT_R32G32B32A32_FLOAT.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS