custom shader webgpu
This commit is contained in:
parent
dedf6b0467
commit
64116cd980
12 changed files with 445 additions and 36 deletions
|
|
@ -71,5 +71,15 @@ namespace Crafter::WebGPU {
|
|||
extern "C" void wgpuDispatchText(std::uint32_t itemsHandle, const void* headerPtr,
|
||||
std::int32_t gx, std::int32_t gy,
|
||||
std::uint32_t atlasHandle, std::uint32_t sampHandle);
|
||||
|
||||
// ─── custom user-authored compute shaders ───────────────────────────
|
||||
__attribute__((import_module("env"), import_name("wgpuLoadCustomShader")))
|
||||
extern "C" std::uint32_t wgpuLoadCustomShader(const void* wgslPtr, std::int32_t wgslLen,
|
||||
const void* bindingsPtr, std::int32_t bindingsCount);
|
||||
__attribute__((import_module("env"), import_name("wgpuDispatchCustom")))
|
||||
extern "C" void wgpuDispatchCustom(std::uint32_t pipelineHandle,
|
||||
const void* pushPtr, std::int32_t pushBytes,
|
||||
const void* handlesPtr, std::int32_t handlesCount,
|
||||
std::int32_t gx, std::int32_t gy, std::int32_t gz);
|
||||
}
|
||||
#endif // CRAFTER_GRAPHICS_WINDOW_DOM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue