# HG changeset patch # User sam # Date 1742139215 -25200 # Node ID 60a709362440e6dd208a5b371d5bcf93fb3c7a24 # Parent 8125d5b0c68c9a630e7b0854d5cd77899c4b1928 undo: bad check diff -r 8125d5b0c68c -r 60a709362440 semicongine/rendering/shaders.nim --- 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: