diff options
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; |