diff options
| author | totonii <totonicontato@gmail.com> | 2026-11-22 11:59:14 -0300 |
|---|---|---|
| committer | totonii <totonicontato@gmail.com> | 2026-11-22 11:59:14 -0300 |
| commit | 461218a6beff72420fbeb60b72e1903fc8359eac (patch) | |
| tree | e9b993f842aead76a828c9da76eb944249c5851b /tools/spirv_interface.py | |
| parent | 6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff) | |
fix(spirv_interface): reject 64-bit vec2 at Component 2 spanning two locations
Diffstat (limited to 'tools/spirv_interface.py')
| -rw-r--r-- | tools/spirv_interface.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/spirv_interface.py b/tools/spirv_interface.py index a9ecfa397..d83dbe1d9 100644 --- a/tools/spirv_interface.py +++ b/tools/spirv_interface.py | |||
| @@ -83,7 +83,7 @@ class NumericType: | |||
| 83 | raise InterfaceError("a 64-bit varying starts on an odd Component") | 83 | raise InterfaceError("a 64-bit varying starts on an odd Component") |
| 84 | if self.width != 64 and component + slots > 4: | 84 | if self.width != 64 and component + slots > 4: |
| 85 | raise InterfaceError("a 16-bit or 32-bit varying extends beyond its Location") | 85 | raise InterfaceError("a 16-bit or 32-bit varying extends beyond its Location") |
| 86 | if self.width == 64 and slots > 4 and component: | 86 | if self.width == 64 and component + slots > 4 and component: |
| 87 | raise InterfaceError("a 64-bit vector spanning two locations needs Component 0") | 87 | raise InterfaceError("a 64-bit vector spanning two locations needs Component 0") |
| 88 | mask = ((1 << slots) - 1) << component | 88 | mask = ((1 << slots) - 1) << component |
| 89 | if mask <= 0xf: | 89 | if mask <= 0xf: |