From 87299d2f027b1cda4eb439cfe93e675b5baedf0c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 16 Oct 2026 21:33:12 +0200 Subject: [PATCH] cultmath tests: the precision tripwire reads vector and matrix spellings of min10float, min16float and half Co-Authored-By: Claude Opus 5.5 --- .../cultmath/tests/CultMath.Tests/GlslMirrorTests.Precision.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cultmath/tests/CultMath.Tests/GlslMirrorTests.Precision.cs b/packages/cultmath/tests/CultMath.Tests/GlslMirrorTests.Precision.cs index 0815b1f5..ee5458db 100644 --- a/packages/cultmath/tests/CultMath.Tests/GlslMirrorTests.Precision.cs +++ b/packages/cultmath/tests/CultMath.Tests/GlslMirrorTests.Precision.cs @@ -11,7 +11,7 @@ public sealed partial class GlslMirrorTests // with comments removed; it does not see a qualifier spelled through a macro, an include or a generated // shader, and it says nothing about a driver that relaxes highp itself. It names file and line, never text. private static readonly Regex ReducedPrecision = new( - @"\b(mediump|lowp|min16float|min10float|min16int|min12int|min16uint|half([1-4](x[1-4])?)?)\b|\bprecision\s+(?!highp\b)\w+", RegexOptions.Compiled); + @"\b(mediump|lowp|min(10|12|16)(float|int|uint)[1-4]?(x[1-4])?|half[1-4]?(x[1-4])?)\b|\bprecision\s+(?!highp\b)\w+", RegexOptions.Compiled); private static IEnumerable ReducedPrecisionLines(string source) {