Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit 067af84

Browse files
authored
Add functions for returning additional groups of basic types (#1155)
Adds new utility functions to return lists of all signed integer based types (int, ivec2, ivec3, ivec4) and changes the availability of the boolean utility function.
1 parent 8030f33 commit 067af84

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

ast/src/main/java/com/graphicsfuzz/common/ast/type/BasicType.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,14 @@ public static List<BasicType> allNonSquareMatrixTypes() {
308308
return result;
309309
}
310310

311+
public static List<BasicType> allSignedTypes() {
312+
return new ArrayList<BasicType>(Arrays.asList(
313+
INT,
314+
IVEC2,
315+
IVEC3,
316+
IVEC4));
317+
}
318+
311319
public static List<BasicType> allUnsignedTypes() {
312320
return new ArrayList<BasicType>(Arrays.asList(
313321
UINT,
@@ -356,7 +364,7 @@ public static List<BasicType> allNonMatrixNumericTypes() {
356364
return result;
357365
}
358366

359-
private static List<BasicType> allBoolTypes() {
367+
public static List<BasicType> allBoolTypes() {
360368
return new ArrayList<BasicType>(Arrays.asList(
361369
BOOL,
362370
BVEC2,

0 commit comments

Comments
 (0)