 |
GpuBufferGetMappedMemorySpanT Method |
Returns a Span that can be used to get the content of the buffer or 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: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic Span GetMappedMemorySpan<T>()
where T : struct, new()
Type Parameters
- T
Return Value
SpanSpan of T with the mapped memory
See AlsoReference
GetMappedMemorySpan``1(Int64, Int64)