 |
GpuBuffer Class |
GpuBuffer represents a buffer in the graphics card's memory.
Inheritance Hierarchy Namespace: Ab4d.SharpEngine.CoreAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntaxpublic class GpuBuffer : GpuDeviceComponent, IDisposable
The GpuBuffer type exposes the following members.
Constructors | Name | Description |
---|
 | GpuBuffer(VulkanDevice, Buffer, VulkanMemoryInfo, Type, Int32, Boolean, String) |
Constructor
|
 | GpuBuffer(VulkanDevice, BufferCreateInfo, MemoryPropertyFlags, Type, Int32, Boolean, Boolean, String) |
Constructor
|
 | GpuBuffer(VulkanDevice, Int64, BufferUsageFlags, QueueFlags, MemoryPropertyFlags, Type, Int32, Boolean, Boolean, String) |
Constructor
|
Top
Properties | Name | Description |
---|
 | Buffer |
Gets the Vulkan Buffer
|
 | BufferMemory |
Gets the VulkanMemoryInfo that represents the memory location of the buffer
|
 | BufferSize |
Gets the size of the buffer in bytes
|
 | ItemsCount |
Gets the number of items of type (ItemType) in this buffer.
|
 | ItemType |
Gets the type of each item in this buffer.
|
Top
Methods | Name | Description |
---|
 | Dispose |
Dispose
|
 | Dispose(Boolean) |
Dispose
(Overrides ComponentBaseDispose(Boolean)) |
 | GetMappedMemoryPtr |
Returns an IntPtr of the mapped memory.
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.
|
 | GetMappedMemoryPtr(Int64, Int64) |
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.
|
 | GetMappedMemorySpanT |
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.
|
 | GetMappedMemorySpanT(Void, T) | |
 | ReadFromBufferT |
Returns the read T from the buffer.
|
 | ReadFromBufferT(Int32) |
Returns the read T from the buffer at the specified offset.
|
 | ReadFromBufferT(T) |
Reads the content of this buffer to the specified array.
If the array is smaller than this buffer, then only the data with the size of the array are copied.
If the buffer is smaller than the array, then the whole buffer will be copied to the start of the array.
|
 | ReadFromBufferT(Span) | |
 | ReadFromBufferT(Span, Void) | |
 | ReadFromBufferT(T, Int32, Int32) |
Reads the dataLength items from this buffer, starting from the bufferDataOffset (specified in absolute bytes offset not as items count).
The data are read to the specified array.
|
 | ToString | (Overrides ObjectToString) |
 | UnmapMemory |
Unmaps the memory that was mapped by calling GetMappedMemoryPtr.
|
 | WriteToBufferT(Span) | |
 | WriteToBufferT(T) |
Writes the specified data to this buffer.
|
 | WriteToBufferT(T) |
Writes the specified data to this buffer.
|
 | WriteToBufferT(T, Int32) |
Writes the specified data to this buffer.
The data is written to the bufferDataOffset location in this buffer (specified in absolute bytes offset not as items count).
|
 | WriteToBufferT(Span, Void) | |
 | WriteToBufferT(T, Int32, Int32) |
Writes the dataLength items to this buffer.
Writing starting at the bufferDataOffset location in this buffer (specified in absolute bytes offset not as items count).
|
Top
Fields
See Also