 |
GpuBufferGetMappedMemoryPtr(Int64, Int64) Method |
Returns an IntPtr of the mapped memory with specified offset and size.
The IntPtr can be used to get the content of the buffer or to copy new content to that location.
After using the memory call
UnmapMemory method.
Note that when this buffer is using a non-coherent memory (
IsNonCoherentMemory is true), you need to call
InvalidateNonCoherentMemory before reading from the mapped memory or call
FlushNonCoherentMemory after writing to the mapped memory (before calling UnmapMemory).
Namespace: Ab4d.SharpEngine.CoreAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic IntPtr GetMappedMemoryPtr(
long offset,
long size
)
Parameters
- offset Int64
-
- size Int64
-
Return Value
IntPtrIntPtr of the mapped memory
See AlsoReference
GetMappedMemorySpan``1(Int64, Int64)