Provides an easy way to validate steps in an equation that will trigger a validation error with
constant or override values due to overflow/underflow. Typical call pattern is:
const vCheck = new ConstantOrOverrideValueChecker(t, Type.f32);
const c = vCheck.checkedResult(a + b);
const d = vCheck.checkedResult(c * c);
const expectedResult = vCheck.allChecksPassed();
Provides an easy way to validate steps in an equation that will trigger a validation error with constant or override values due to overflow/underflow. Typical call pattern is:
const vCheck = new ConstantOrOverrideValueChecker(t, Type.f32); const c = vCheck.checkedResult(a + b); const d = vCheck.checkedResult(c * c); const expectedResult = vCheck.allChecksPassed();