summaryrefslogtreecommitdiff
path: root/src/compiler/glsl_types.h
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2019-06-06 11:37:32 -0500
committerJason Ekstrand <jason@jlekstrand.net>2019-06-19 20:28:52 +0000
commitf0920e266c152044cb05892f3aea5a17a163cc02 (patch)
treec713093793366ea4cc4681c8a1aac539822facdf /src/compiler/glsl_types.h
parent21a7e6d569700812cdd127551a6f8ce24cf6201a (diff)
downloadmesa-f0920e266c152044cb05892f3aea5a17a163cc02.tar.gz
glsl/types: Rename is_integer to is_integer_32
It only accepts 32-bit integers so it should have a more descriptive name. This patch should not be a functional change. Reviewed-by: Karol Herbst <kherbst@redhat.com>
Diffstat (limited to 'src/compiler/glsl_types.h')
-rw-r--r--src/compiler/glsl_types.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h
index 23d2ee00fdf..693b0371151 100644
--- a/src/compiler/glsl_types.h
+++ b/src/compiler/glsl_types.h
@@ -586,9 +586,9 @@ public:
}
/**
- * Query whether or not a type is an integral type
+ * Query whether or not a type is an 32-bit integer.
*/
- bool is_integer() const
+ bool is_integer_32() const
{
return (base_type == GLSL_TYPE_UINT) || (base_type == GLSL_TYPE_INT);
}
@@ -606,7 +606,7 @@ public:
*/
bool is_integer_32_64() const
{
- return is_integer() || is_integer_64();
+ return is_integer_32() || is_integer_64();
}
/**