diff options
| author | AwkGrep256 <AwkGrep256@users.noreply.github.com> | 2026-11-23 00:18:06 +0300 |
|---|---|---|
| committer | AwkGrep256 <AwkGrep256@users.noreply.github.com> | 2026-11-23 00:18:06 +0300 |
| commit | 7353b6fbdd615209aa9ba52f0e46eeb35dea90ad (patch) | |
| tree | dd5759ac54e1e9b8c01525c8291c2cf0ca856ca6 /runtime/src/root_signature.cpp | |
| parent | 58bc80c331097fe25df0cd43577ea17af2cd1e46 (diff) | |
| parent | 960466152f872c87e4593c919c77ca587551c865 (diff) | |
Merge branch 'radv-ps-oracle' into ps-helper-lanes
# Conflicts:
# docs/design.md
# docs/shader_validation.md
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; |