diff options
| author | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 21:57:30 +0100 |
|---|---|---|
| committer | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 21:57:30 +0100 |
| commit | dd0abd45b33e77b887e8f910a0a74f8cb5b0a32a (patch) | |
| tree | 81ab40736dbb8aff779a52d5c46422570d479b30 /runtime/src/root_signature.cpp | |
| parent | 4c414d121663c06ab2cbfb04596cc2a39457be77 (diff) | |
| parent | f847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff) | |
Merge main into hw4-ps-oracle (#3061)
docs/shader_validation.md
AI-assisted.
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; |