webgpu sponza
This commit is contained in:
parent
5553ded476
commit
b5d0f52da0
21 changed files with 1426 additions and 58 deletions
|
|
@ -66,6 +66,12 @@ export namespace Crafter {
|
|||
// RTDispatchHeader. Null means "no extra data".
|
||||
const void* pushPtr = nullptr;
|
||||
std::uint32_t pushBytes = 0;
|
||||
// Resolved WebGPU resource handles for each user binding the
|
||||
// pipeline was loaded with, in declaration order. The example
|
||||
// owns the storage (typically a small std::array of u32). Null /
|
||||
// 0 means "no user bindings".
|
||||
const void* handlesPtr = nullptr;
|
||||
std::uint32_t handlesCount = 0;
|
||||
|
||||
RTPass(PipelineRTWebGPU* p) : pipeline(p) {}
|
||||
|
||||
|
|
@ -80,7 +86,9 @@ export namespace Crafter {
|
|||
tlas.buffer.handle,
|
||||
static_cast<std::int32_t>(tlas.builtInstanceCount),
|
||||
static_cast<std::int32_t>(gx),
|
||||
static_cast<std::int32_t>(gy));
|
||||
static_cast<std::int32_t>(gy),
|
||||
handlesPtr,
|
||||
static_cast<std::int32_t>(handlesCount));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue