-
-
Notifications
You must be signed in to change notification settings - Fork 3
vke.HostBuffer
Jean-Philippe Bruyère edited this page Feb 2, 2020
·
1 revision
Host visible mappable buffer to handle array of blittable type T
Mappable Buffer
with HostVisble and HostCoherent memory flags
namespace: vke
HostBuffer
public class HostBuffer : Buffer
⬜ | prototype | description |
---|---|---|
![]() |
HostBuffer (Device device, VkBufferUsageFlags usage, uint arrayElementCount, bool keepMapped=false, bool coherentMem=true) |
Create an empty mappable vulkan buffer for elements of type T whith specified size. |
![]() |
HostBuffer (Device device, VkBufferUsageFlags usage, IList< T > data, bool keepMapped=false, bool coherentMem=true) |
Create and populate a mappable vulkan buffer. |
![]() |
HostBuffer (Device device, VkBufferUsageFlags usage, T[] data, bool keepMapped=false, bool coherentMem=true) |
Create and populate a mappable vulkan buffer. |
⬜ | name | description |
---|
⬜ | prototype | description |
---|---|---|
![]() |
void Flush(uint startIndex, uint endIndex) |
Flush memory, note that coherent memory desn't need it. |
![]() |
HostBuffer?(Device device, VkBufferUsageFlags usage, UInt64 size, bool keepMapped=false, bool coherentMem=true) |
Create an empty mappable vulkan buffer whith specified size in byte. |
![]() |
HostBuffer?(Device device, VkBufferUsageFlags usage, object data, bool keepMapped=false, bool coherentMem=true) |
Create a mappable vulkan buffer whith the supplied object. |
![]() |
HostBuffer?(Device device, VkBufferUsageFlags usage, UInt64 size, IntPtr data, bool keepMapped=false, bool coherentMem=true) |
Create a mappable vulkan buffer of specified size whith a data pointer. |
![]() |
void Update(T[] data) |
Update content of the buffer with array of given length with no offset. |
![]() |
void Update(uint index, T data) |
Update a single T element in the buffer at specified index. |
⬜ | name | description |
---|