Closed KySpace closed 8 years ago
First I suggest you to read documentation like "How to: Use dynamic resources" if you haven't seen it, lots of information in it.
Concerning your questions:
DataStream
(DataStream is a wrapper around a native pointer). other overrides will return just the native buffer through a DataBox
. DataStream
(or directly through the native pointers if you use different method overrides)That helps @xoofx
I've looked through a lot of archives but still cannot figure out how it works. Taking this overridden one for example.
public DataBox MapSubresource(Buffer resource, MapMode mode, MapFlags flags, out DataStream stream)
out
as if it is an output value rather than input?MapSubresource
method whenever GPU access is finished(after every frame), and call theUnmapSubresource
next frame to allow GPU access so it may save more time when I am keep updating the data?Thank you!