Game Development Reference
In-Depth Information
rowPitch refers to the size of one row of the source data. For many buffers you can
just pass in the size of the row, however, if you were updating a texture you would
pass in the size of the width in bytes, and then specify the depthPitch as the total
size of the 2D texture.
With both the UpdateSubresource() and Map() methods, there are many
gotchas and potential issues that you need to watch for. Be sure to read through the
MSDN reference for both the options so you know which one you should use for your
situation.
Search WWH ::




Custom Search