mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 07:23:35 +00:00
working on WebGPU support
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
[](https://github.com/ft-grmhd/Pulse/actions/workflows/msys2-build.yml)
|
||||
[](https://github.com/ft-grmhd/Pulse/actions/workflows/windows-build.yml)
|
||||
|
||||
Pulse is a low level GPGPU library designed for highly intensive general GPU computations with high control over the hardware. It is built on top of Vulkan and a Metal support is in discussion.
|
||||
Pulse is a low level GPGPU library designed for highly intensive general GPU computations with high control over the hardware. It is built on top of Vulkan. A Metal and WebGPU backends are in development.
|
||||
|
||||
```cpp
|
||||
#include <Pulse.h>
|
||||
@@ -36,7 +36,7 @@ int main(void)
|
||||
PulseCommandList cmd = PulseRequestCommandList(device, PULSE_COMMAND_LIST_GENERAL);
|
||||
|
||||
PulseComputePass pass = PulseBeginComputePass(cmd);
|
||||
PulseBindStorageBuffers(pass, 0, &buffer, 1);
|
||||
PulseBindStorageBuffers(pass, &buffer, 1);
|
||||
PulseBindComputePipeline(pass, pipeline);
|
||||
PulseDispatchComputations(pass, 32, 32, 1);
|
||||
PulseEndComputePass(pass);
|
||||
|
||||
Reference in New Issue
Block a user