Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

using D3D10_SUBRESOURCE_DATA on 2DTexture

4: Adsense

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   

491
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.


#2 MJP   Moderators   

19455
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.