i not know initialize shader constant buffer: before map()
, before unmnap()
or not difference initialize ?
see second parameter of create buffer function.
id3d11device::createbuffer( [in] const d3d11_buffer_desc *pdesc, [in, optional] const d3d11_subresource_data *pinitialdata, [out, optional] id3d11buffer **ppbuffer );
http://msdn.microsoft.com/en-us/library/windows/desktop/ff476501(v=vs.85).aspx
Comments
Post a Comment