mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 23:43:34 +00:00
yes
This commit is contained in:
@@ -10,14 +10,16 @@
|
||||
#include <webgpu/webgpu.h>
|
||||
|
||||
#include <Pulse.h>
|
||||
#include "../../PulseInternal.h"
|
||||
|
||||
typedef struct WebGPUBuffer
|
||||
{
|
||||
WGPUBuffer buffer;
|
||||
void* map;
|
||||
PulseMapMode current_map_mode;
|
||||
} WebGPUBuffer;
|
||||
|
||||
PulseBuffer WebGPUCreateBuffer(PulseDevice device, const PulseBufferCreateInfo* create_infos);
|
||||
bool WebGPUMapBuffer(PulseBuffer buffer, void** data);
|
||||
bool WebGPUMapBuffer(PulseBuffer buffer, PulseMapMode mode, void** data);
|
||||
void WebGPUUnmapBuffer(PulseBuffer buffer);
|
||||
bool WebGPUCopyBufferToBuffer(PulseCommandList cmd, const PulseBufferRegion* src, const PulseBufferRegion* dst);
|
||||
bool WebGPUCopyBufferToImage(PulseCommandList cmd, const PulseBufferRegion* src, const PulseImageRegion* dst);
|
||||
|
||||
Reference in New Issue
Block a user