From 99ebdf51a42104e032dda16a1bcbf1e582dcea45 Mon Sep 17 00:00:00 2001 From: Chris Rydalch Date: Fri, 26 May 2023 10:24:28 -0500 Subject: [PATCH] Add integer signature to floor and ceil (#1362) Adds support to ceil and floor to output integers. There will be other tickets/discussions around improving integer support across MaterialX, but adding integer output to these nodes first would be a big help to some nodegraph contributions we'd like to contribute soon. --- .../stdlib/genglsl/stdlib_genglsl_impl.mtlx | 2 + .../stdlib/genmdl/stdlib_genmdl_impl.mtlx | 2 + .../stdlib/genmsl/stdlib_genmsl_impl.mtlx | 2 + .../stdlib/genosl/stdlib_genosl_impl.mtlx | 2 + libraries/stdlib/stdlib_defs.mtlx | 8 ++ .../Materials/TestSuite/stdlib/math/math.mtlx | 118 ++++++++++-------- 6 files changed, 84 insertions(+), 50 deletions(-) diff --git a/libraries/stdlib/genglsl/stdlib_genglsl_impl.mtlx b/libraries/stdlib/genglsl/stdlib_genglsl_impl.mtlx index be9ef3d364..90d3120bd7 100644 --- a/libraries/stdlib/genglsl/stdlib_genglsl_impl.mtlx +++ b/libraries/stdlib/genglsl/stdlib_genglsl_impl.mtlx @@ -310,6 +310,7 @@ + @@ -318,6 +319,7 @@ + diff --git a/libraries/stdlib/genmdl/stdlib_genmdl_impl.mtlx b/libraries/stdlib/genmdl/stdlib_genmdl_impl.mtlx index f860ae7226..eb1e60167f 100644 --- a/libraries/stdlib/genmdl/stdlib_genmdl_impl.mtlx +++ b/libraries/stdlib/genmdl/stdlib_genmdl_impl.mtlx @@ -313,6 +313,7 @@ + @@ -321,6 +322,7 @@ + diff --git a/libraries/stdlib/genmsl/stdlib_genmsl_impl.mtlx b/libraries/stdlib/genmsl/stdlib_genmsl_impl.mtlx index 9687e6c6f9..fcab8fd69d 100644 --- a/libraries/stdlib/genmsl/stdlib_genmsl_impl.mtlx +++ b/libraries/stdlib/genmsl/stdlib_genmsl_impl.mtlx @@ -311,6 +311,7 @@ + @@ -319,6 +320,7 @@ + diff --git a/libraries/stdlib/genosl/stdlib_genosl_impl.mtlx b/libraries/stdlib/genosl/stdlib_genosl_impl.mtlx index 25bd6cc0b3..1ba22ef6a3 100644 --- a/libraries/stdlib/genosl/stdlib_genosl_impl.mtlx +++ b/libraries/stdlib/genosl/stdlib_genosl_impl.mtlx @@ -313,6 +313,7 @@ + @@ -321,6 +322,7 @@ + diff --git a/libraries/stdlib/stdlib_defs.mtlx b/libraries/stdlib/stdlib_defs.mtlx index b6f9da35b1..00cce2d02b 100644 --- a/libraries/stdlib/stdlib_defs.mtlx +++ b/libraries/stdlib/stdlib_defs.mtlx @@ -1699,6 +1699,10 @@ + + + +