diff options
| author | SuarezPM <SuarezPM@users.noreply.github.com> | 2026-11-22 19:04:22 -0300 |
|---|---|---|
| committer | SuarezPM <SuarezPM@users.noreply.github.com> | 2026-11-22 19:04:22 -0300 |
| commit | 73bee00a64b1cd70ee12865b17bf62172dcf1111 (patch) | |
| tree | 03a2b2b49ca8dbdf9aa38be1cdb6ad7a3c4aacaf /runtime/src/root_signature.cpp | |
| parent | 557a25ed3e06bf9b399ddebcea6abbd72f15e54e (diff) | |
| parent | 4c52ce27a6cf4af2bbf07a343ede39c5f1572b8d (diff) | |
Merge upstream/main into rt-shader-real-bvh
Keep both heap loaders: main's VKC_HEAP_INIT (VA 0) and this branch's VKC_HEAP_FILE (offset, auto-sized).
Diffstat (limited to 'runtime/src/root_signature.cpp')
| -rw-r--r-- | runtime/src/root_signature.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/src/root_signature.cpp b/runtime/src/root_signature.cpp index 762dd704e..844f1b580 100644 --- a/runtime/src/root_signature.cpp +++ b/runtime/src/root_signature.cpp | |||
| @@ -13,6 +13,10 @@ PackResult pack(const RootSignature& sig) { | |||
| 13 | } | 13 | } |
| 14 | uint64_t cost = 0; // 64-bit: a parameter of 0xFFFFFFFF constants must not wrap past the limits | 14 | uint64_t cost = 0; // 64-bit: a parameter of 0xFFFFFFFF constants must not wrap past the limits |
| 15 | for (const RootParameter& p : sig.params) { | 15 | for (const RootParameter& p : sig.params) { |
| 16 | if (p.type != ParamType::Constants && p.type != ParamType::Descriptor && p.type != ParamType::Table) { | ||
| 17 | out.error = "unknown root parameter type"; | ||
| 18 | return out; | ||
| 19 | } | ||
| 16 | if (p.type == ParamType::Constants && p.num_values == 0) { | 20 | if (p.type == ParamType::Constants && p.num_values == 0) { |
| 17 | out.error = "root constant parameter needs at least 1 dword"; | 21 | out.error = "root constant parameter needs at least 1 dword"; |
| 18 | return out; | 22 | return out; |