changeset 1453:60a709362440 default tip

undo: bad check
author sam <sam@basx.dev>
date Sun, 16 Mar 2025 22:33:35 +0700
parents 8125d5b0c68c
children
files semicongine/rendering/shaders.nim
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/rendering/shaders.nim	Sun Mar 16 22:08:10 2025 +0700
+++ b/semicongine/rendering/shaders.nim	Sun Mar 16 22:33:35 2025 +0700
@@ -349,9 +349,6 @@
       for constFieldName, constFieldValue in fieldPairs(value):
         assert typeof(constFieldValue) is SupportedGPUType,
           "push constant field '" & constFieldName & "' is not a SupportedGPUType"
-        assert not (
-          typeof(constFieldValue) is uint16 or typeof(constFieldValue) is int16
-        ), "16-bit members are not supported for push constants"
         pushConstants.add "  " & glslType(constFieldValue) & " " & constFieldName & ";"
       pushConstants.add "} " & fieldname & ";"
     else: