Commit 19868b7e by Shahbaz Youssefi Committed by Commit Bot

Restructure textureGatherOffset* builtin declarations

This is in preparation of textureGatherOffsets support. Bug: angleproject:3569 Change-Id: I4ce5a1e102790181c8f843735961b9c249a69221 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1965720Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent b8e056dd
{ {
"src/compiler/translator/ImmutableString_ESSL_autogen.cpp": "src/compiler/translator/ImmutableString_ESSL_autogen.cpp":
"fe602324a31c982cdd7c107181236ec6", "b8d50bd807166fa370cd8020c48e11bb",
"src/compiler/translator/ImmutableString_autogen.cpp": "src/compiler/translator/ImmutableString_autogen.cpp":
"0d631780ea7308d873cbd587b054be02", "40dfa7a80a72be2e2b6fa9d4d0102f96",
"src/compiler/translator/ParseContext_ESSL_autogen.h": "src/compiler/translator/ParseContext_ESSL_autogen.h":
"bffca635252a71dac27b3afa7d875499", "930be35944322ada2fb812a0fcb61aa7",
"src/compiler/translator/ParseContext_complete_autogen.h": "src/compiler/translator/ParseContext_complete_autogen.h":
"31ab3cdbb91558934da68789b5258711", "59554780ac5a719c459a359aebe5bec5",
"src/compiler/translator/SymbolTable_ESSL_autogen.cpp": "src/compiler/translator/SymbolTable_ESSL_autogen.cpp":
"ee18e53f2f0dad48d8e9fe00d986030f", "b978e3a64a715cf92561dc25d1258769",
"src/compiler/translator/SymbolTable_autogen.cpp": "src/compiler/translator/SymbolTable_autogen.cpp":
"98a0921714b262a60e9156addd85f68a", "9c3e65091154d68fb84a55273fbaa80f",
"src/compiler/translator/SymbolTable_autogen.h": "src/compiler/translator/SymbolTable_autogen.h":
"3ce7740b6ad93a86d198c3937b70c17e", "3ce7740b6ad93a86d198c3937b70c17e",
"src/compiler/translator/builtin_function_declarations.txt": "src/compiler/translator/builtin_function_declarations.txt":
"3b43d33d9ff2bbf15169e5e525e474c9", "2876e7856fb75158a096a0a60941e6c8",
"src/compiler/translator/builtin_variables.json": "src/compiler/translator/builtin_variables.json":
"1b71075ff2644fd32b12bb53dce50062", "1b71075ff2644fd32b12bb53dce50062",
"src/compiler/translator/gen_builtin_symbols.py": "src/compiler/translator/gen_builtin_symbols.py":
"d10962278862f28e8f559430f8f43dc9", "d10962278862f28e8f559430f8f43dc9",
"src/compiler/translator/tree_util/BuiltIn_ESSL_autogen.h": "src/compiler/translator/tree_util/BuiltIn_ESSL_autogen.h":
"61f5b6be97331bb4c05ea36ab4ab3724", "356a9712339e6c716055a09488592dd6",
"src/compiler/translator/tree_util/BuiltIn_complete_autogen.h": "src/compiler/translator/tree_util/BuiltIn_complete_autogen.h":
"17aa7b01dcf253700edfad7e9e584241", "db403b0e374a47fc4e04a2fb171e4669",
"src/tests/compiler_tests/ImmutableString_test_ESSL_autogen.cpp": "src/tests/compiler_tests/ImmutableString_test_ESSL_autogen.cpp":
"e014f0e867acd76080574c6d87c94a2d", "42ae947e0e2be87a96a7aa2bd6f9dd28",
"src/tests/compiler_tests/ImmutableString_test_autogen.cpp": "src/tests/compiler_tests/ImmutableString_test_autogen.cpp":
"ae68e2145cbf31af7cbbd61fa25b8a0c" "55ca076938de8e3780086e4991b3b8ea"
} }
\ No newline at end of file
...@@ -135,7 +135,7 @@ constexpr int mangledkG[] = { ...@@ -135,7 +135,7 @@ constexpr int mangledkG[] = {
0, 3391, 3089, 0, 0, 663, 3657, 3881, 0, 0, 469, 1334, 0, 1933, 253, 1387, 0, 3391, 3089, 0, 0, 663, 3657, 3881, 0, 0, 469, 1334, 0, 1933, 253, 1387,
2969, 0, 1076, 1238, 0, 0, 0, 0, 1479, 1693, 532, 2937, 133, 1350, 0, 0, 2969, 0, 1076, 1238, 0, 0, 0, 0, 1479, 1693, 532, 2937, 133, 1350, 0, 0,
3695, 658, 0, 1220, 0, 1462, 1698, 0, 1406, 2730, 0, 0, 0, 0, 1873, 0, 3695, 658, 0, 1220, 0, 1462, 1698, 0, 1406, 2730, 0, 0, 0, 0, 1873, 0,
682, 0, 3697, 3413, 1669, 0, 0, 866, 0, 3054, 3269, 0, 3841, 0, 3895, 2225, 780, 0, 3697, 3413, 1669, 0, 0, 866, 0, 3054, 3269, 0, 3841, 0, 3895, 2225,
1312, 434, 0, 359, 3647, 647, 0, 1816, 0, 1172, 1889, 0, 0, 0, 0, 0, 1312, 434, 0, 359, 3647, 647, 0, 1816, 0, 1172, 1889, 0, 0, 0, 0, 0,
1805, 3443, 0, 0, 2732, 1236, 0, 2897, 1133, 919, 0, 0, 0, 0, 3321, 0, 1805, 3443, 0, 0, 2732, 1236, 0, 2897, 1133, 919, 0, 0, 0, 0, 3321, 0,
64, 0, 0, 2276, 1647, 0, 0, 508, 0, 0, 0, 0, 0, 4016, 1974, 1140, 64, 0, 0, 2276, 1647, 0, 0, 508, 0, 0, 0, 0, 0, 4016, 1974, 1140,
...@@ -220,7 +220,7 @@ constexpr int mangledkG[] = { ...@@ -220,7 +220,7 @@ constexpr int mangledkG[] = {
3335, 40, 1956, 0, 1648, 2066, 0, 0, 270, 3350, 1739, 2818, 1819, 782, 139, 90, 3335, 40, 1956, 0, 1648, 2066, 0, 0, 270, 3350, 1739, 2818, 1819, 782, 139, 90,
126, 0, 0, 0, 3964, 2025, 3571, 2108, 1486, 0, 3334, 0, 0, 0, 291, 0, 126, 0, 0, 0, 3964, 2025, 3571, 2108, 1486, 0, 3334, 0, 0, 0, 291, 0,
3163, 0, 0, 1033, 0, 151, 0, 0, 453, 0, 0, 174, 0, 643, 1078, 0, 3163, 0, 0, 1033, 0, 151, 0, 0, 453, 0, 0, 174, 0, 643, 1078, 0,
1227, 416, 1376, 77, 832, 0, 905, 140, 1232, 136, 0, 55, 1401, 0, 0, 0, 1129, 416, 1376, 77, 832, 0, 905, 140, 1232, 136, 0, 55, 1401, 0, 0, 0,
0, 3012, 0, 0, 0, 1310, 1914, 2608, 261, 756, 0, 3623, 223, 521, 1926, 0, 0, 3012, 0, 0, 0, 1310, 1914, 2608, 261, 756, 0, 3623, 223, 521, 1926, 0,
3748, 0, 0, 288, 1428, 200, 0, 1506, 528, 0, 0, 0, 1983, 0, 637, 1557, 3748, 0, 0, 288, 1428, 200, 0, 1506, 528, 0, 0, 0, 1983, 0, 637, 1557,
0, 3820, 1832, 1669, 0, 1596, 0, 1588, 1454, 0, 0, 0, 2429, 3381, 588, 559, 0, 3820, 1832, 1669, 0, 1596, 0, 1588, 1454, 0, 0, 0, 2429, 3381, 588, 559,
......
...@@ -21,42 +21,67 @@ namespace BuiltInGroup ...@@ -21,42 +21,67 @@ namespace BuiltInGroup
bool isTextureOffsetNoBias(const TFunction *func) bool isTextureOffsetNoBias(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 3029 && id <= 3098; return id >= 3045 && id <= 3114;
} }
bool isTextureOffsetBias(const TFunction *func) bool isTextureOffsetBias(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 3099 && id <= 3118; return id >= 3115 && id <= 3134;
}
bool isTextureGatherOffsetsComp(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3172 && id <= 3184;
}
bool isTextureGatherOffsetsNoComp(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3185 && id <= 3206;
}
bool isTextureGatherOffsets(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3172 && id <= 3206;
}
bool isTextureGatherOffsetComp(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3207 && id <= 3212;
}
bool isTextureGatherOffsetNoComp(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3213 && id <= 3220;
} }
bool isTextureGatherOffset(const TFunction *func) bool isTextureGatherOffset(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 3156 && id <= 3169; return id >= 3207 && id <= 3220;
} }
bool isTextureGather(const TFunction *func) bool isTextureGather(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 3132 && id <= 3169; return id >= 3148 && id <= 3220;
} }
bool isAtomicMemory(const TFunction *func) bool isAtomicMemory(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 3186 && id <= 3203; return id >= 3237 && id <= 3254;
} }
bool isImageLoad(const TFunction *func) bool isImageLoad(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 3228 && id <= 3239; return id >= 3279 && id <= 3290;
} }
bool isImageStore(const TFunction *func) bool isImageStore(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 3240 && id <= 3251; return id >= 3291 && id <= 3302;
} }
bool isImage(const TFunction *func) bool isImage(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 3204 && id <= 3251; return id >= 3255 && id <= 3302;
} }
} // namespace BuiltInGroup } // namespace BuiltInGroup
......
...@@ -28,35 +28,60 @@ bool isTextureOffsetBias(const TFunction *func) ...@@ -28,35 +28,60 @@ bool isTextureOffsetBias(const TFunction *func)
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 1264 && id <= 1298; return id >= 1264 && id <= 1298;
} }
bool isTextureGatherOffsetsComp(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 1350 && id <= 1365;
}
bool isTextureGatherOffsetsNoComp(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 1366 && id <= 1387;
}
bool isTextureGatherOffsets(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 1350 && id <= 1387;
}
bool isTextureGatherOffsetComp(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 1388 && id <= 1396;
}
bool isTextureGatherOffsetNoComp(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 1397 && id <= 1408;
}
bool isTextureGatherOffset(const TFunction *func) bool isTextureGatherOffset(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 1350 && id <= 1392; return id >= 1388 && id <= 1408;
} }
bool isTextureGather(const TFunction *func) bool isTextureGather(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 1312 && id <= 1392; return id >= 1312 && id <= 1408;
} }
bool isAtomicMemory(const TFunction *func) bool isAtomicMemory(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 1454 && id <= 1471; return id >= 1470 && id <= 1487;
} }
bool isImageLoad(const TFunction *func) bool isImageLoad(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 2108 && id <= 2140; return id >= 2124 && id <= 2156;
} }
bool isImageStore(const TFunction *func) bool isImageStore(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 2141 && id <= 2173; return id >= 2157 && id <= 2189;
} }
bool isImage(const TFunction *func) bool isImage(const TFunction *func)
{ {
int id = func->uniqueId().get(); int id = func->uniqueId().get();
return id >= 1472 && id <= 2173; return id >= 1488 && id <= 2189;
} }
} // namespace BuiltInGroup } // namespace BuiltInGroup
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -880,27 +880,51 @@ GROUP BEGIN TextureGather {"queryFunction": true} ...@@ -880,27 +880,51 @@ GROUP BEGIN TextureGather {"queryFunction": true}
vec4 textureGather(sampler2DRectShadow, vec2, float); vec4 textureGather(sampler2DRectShadow, vec2, float);
GROUP BEGIN Offset {"queryFunction": true} GROUP BEGIN Offset {"queryFunction": true}
DEFAULT METADATA {"essl_level": "ESSL3_1_BUILTINS", "glsl_level": "GLSL4_BUILTINS", "op": "CallBuiltInFunction"} GROUP BEGIN NoComp {"queryFunction": true}
gvec4 textureGatherOffset(gsampler2D, vec2, ivec2); DEFAULT METADATA {"essl_level": "ESSL3_1_BUILTINS", "glsl_level": "GLSL4_BUILTINS", "op": "CallBuiltInFunction"}
gvec4 textureGatherOffset(gsampler2D, vec2, ivec2, int); gvec4 textureGatherOffset(gsampler2D, vec2, ivec2);
gvec4 textureGatherOffset(gsampler2DArray, vec3, ivec2); gvec4 textureGatherOffset(gsampler2DArray, vec3, ivec2);
gvec4 textureGatherOffset(gsampler2DArray, vec3, ivec2, int); vec4 textureGatherOffset(sampler2DShadow, vec2, float, ivec2);
vec4 textureGatherOffset(sampler2DShadow, vec2, float, ivec2); vec4 textureGatherOffset(sampler2DArrayShadow, vec3, float, ivec2);
vec4 textureGatherOffset(sampler2DArrayShadow, vec3, float, ivec2); DEFAULT METADATA {"glsl_level": "GLSL4_BUILTINS", "op": "CallBuiltInFunction"}
DEFAULT METADATA {"glsl_level": "GLSL4_BUILTINS", "op": "CallBuiltInFunction"} gvec4 textureGatherOffset(gsampler2DRect, vec2, ivec2);
gvec4 textureGatherOffset(gsampler2DRect, vec2, ivec2); vec4 textureGatherOffset(sampler2DRectShadow, vec2, float, ivec2);
gvec4 textureGatherOffset(gsampler2DRect, vec2, ivec2, int); GROUP END NoComp
vec4 textureGatherOffset(sampler2DRectShadow, vec2, float, ivec2); GROUP BEGIN Comp {"queryFunction": true}
gvec4 textureGatherOffsets(gsampler2D, vec2, ivec2[4]); DEFAULT METADATA {"essl_level": "ESSL3_1_BUILTINS", "glsl_level": "GLSL4_BUILTINS", "op": "CallBuiltInFunction"}
gvec4 textureGatherOffsets(gsampler2D, vec2, ivec2[4], int); gvec4 textureGatherOffset(gsampler2D, vec2, ivec2, int);
gvec4 textureGatherOffsets(gsampler2DArray, vec3, ivec2[4]); gvec4 textureGatherOffset(gsampler2DArray, vec3, ivec2, int);
gvec4 textureGatherOffsets(gsampler2DArray, vec3, ivec2[4], int); DEFAULT METADATA {"glsl_level": "GLSL4_BUILTINS", "op": "CallBuiltInFunction"}
gvec4 textureGatherOffsets(gsampler2DRect, vec2, ivec2[4]); gvec4 textureGatherOffset(gsampler2DRect, vec2, ivec2, int);
gvec4 textureGatherOffsets(gsampler2DRect, vec2, ivec2[4], int); GROUP END Comp
vec4 textureGatherOffsets(sampler2DShadow, vec2, float, ivec2[4]);
vec4 textureGatherOffsets(sampler2DArrayShadow, vec3, float, ivec2[4]);
vec4 textureGatherOffsets(sampler2DRectShadow, vec2, float, ivec2[4]);
GROUP END Offset GROUP END Offset
GROUP BEGIN Offsets {"queryFunction": true}
GROUP BEGIN NoComp {"queryFunction": true}
DEFAULT METADATA {"essl_level": "ESSL3_2_BUILTINS", "glsl_level": "GLSL4_BUILTINS", "op": "CallBuiltInFunction"}
gvec4 textureGatherOffsets(gsampler2D, vec2, ivec2[4]);
gvec4 textureGatherOffsets(gsampler2DArray, vec3, ivec2[4]);
gvec4 textureGatherOffsets(gsampler2DRect, vec2, ivec2[4]);
vec4 textureGatherOffsets(sampler2DShadow, vec2, float, ivec2[4]);
DEFAULT METADATA {"essl_level": "ESSL3_1_BUILTINS", "op": "CallBuiltInFunction", "essl_extension": "EXT_gpu_shader5", "suffix": "Ext"}
gvec4 textureGatherOffsets(gsampler2D, vec2, ivec2[4]);
gvec4 textureGatherOffsets(gsampler2DArray, vec3, ivec2[4]);
gvec4 textureGatherOffsets(gsampler2DRect, vec2, ivec2[4]);
vec4 textureGatherOffsets(sampler2DShadow, vec2, float, ivec2[4]);
DEFAULT METADATA {"glsl_level": "GLSL4_BUILTINS", "op": "CallBuiltInFunction"}
vec4 textureGatherOffsets(sampler2DArrayShadow, vec3, float, ivec2[4]);
vec4 textureGatherOffsets(sampler2DRectShadow, vec2, float, ivec2[4]);
GROUP END NoComp
GROUP BEGIN Comp {"queryFunction": true}
DEFAULT METADATA {"essl_level": "ESSL3_2_BUILTINS", "glsl_level": "GLSL4_BUILTINS", "op": "CallBuiltInFunction"}
gvec4 textureGatherOffsets(gsampler2D, vec2, ivec2[4], int);
gvec4 textureGatherOffsets(gsampler2DArray, vec3, ivec2[4], int);
DEFAULT METADATA {"essl_level": "ESSL3_1_BUILTINS", "op": "CallBuiltInFunction", "essl_extension": "EXT_gpu_shader5", "suffix": "Ext"}
gvec4 textureGatherOffsets(gsampler2D, vec2, ivec2[4], int);
gvec4 textureGatherOffsets(gsampler2DArray, vec3, ivec2[4], int);
DEFAULT METADATA {"glsl_level": "GLSL4_BUILTINS", "op": "CallBuiltInFunction"}
gvec4 textureGatherOffsets(gsampler2DRect, vec2, ivec2[4], int);
GROUP END Comp
GROUP END Offsets
GROUP END TextureGather GROUP END TextureGather
GROUP BEGIN DerivativesFS {"shader_type": "FRAGMENT"} GROUP BEGIN DerivativesFS {"shader_type": "FRAGMENT"}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -757,7 +757,7 @@ TEST(ImmutableStringTest, ScriptGeneratedHashesMatch) ...@@ -757,7 +757,7 @@ TEST(ImmutableStringTest, ScriptGeneratedHashesMatch)
ASSERT_EQ(0x00000127u, ImmutableString("textureProj(00o30B").mangledNameHash()); ASSERT_EQ(0x00000127u, ImmutableString("textureProj(00o30B").mangledNameHash());
ASSERT_EQ(0x00000773u, ImmutableString("textureProj(00t30B").mangledNameHash()); ASSERT_EQ(0x00000773u, ImmutableString("textureProj(00t30B").mangledNameHash());
ASSERT_EQ(0x00000102u, ImmutableString("textureProj(00m30B").mangledNameHash()); ASSERT_EQ(0x00000102u, ImmutableString("textureProj(00m30B").mangledNameHash());
ASSERT_EQ(0x000004b3u, ImmutableString("textureProj(00q20B").mangledNameHash()); ASSERT_EQ(0x00000515u, ImmutableString("textureProj(00q20B").mangledNameHash());
ASSERT_EQ(0x000006acu, ImmutableString("textureProj(00v20B").mangledNameHash()); ASSERT_EQ(0x000006acu, ImmutableString("textureProj(00v20B").mangledNameHash());
ASSERT_EQ(0x000005acu, ImmutableString("textureProj(00q30B").mangledNameHash()); ASSERT_EQ(0x000005acu, ImmutableString("textureProj(00q30B").mangledNameHash());
ASSERT_EQ(0x00000609u, ImmutableString("textureProj(00v30B").mangledNameHash()); ASSERT_EQ(0x00000609u, ImmutableString("textureProj(00v30B").mangledNameHash());
...@@ -1286,48 +1286,48 @@ TEST(ImmutableStringTest, ScriptGeneratedHashesMatch) ...@@ -1286,48 +1286,48 @@ TEST(ImmutableStringTest, ScriptGeneratedHashesMatch)
ASSERT_EQ(0x000000ceu, ImmutableString("textureGather(00e20B00B").mangledNameHash()); ASSERT_EQ(0x000000ceu, ImmutableString("textureGather(00e20B00B").mangledNameHash());
ASSERT_EQ(0x0000070eu, ImmutableString("textureGather(00l30B00B").mangledNameHash()); ASSERT_EQ(0x0000070eu, ImmutableString("textureGather(00l30B00B").mangledNameHash());
ASSERT_EQ(0x00000754u, ImmutableString("textureGather(00n10B00B").mangledNameHash()); ASSERT_EQ(0x00000754u, ImmutableString("textureGather(00n10B00B").mangledNameHash());
ASSERT_EQ(0x00000080u, ImmutableString("textureGatherOffset(00I10B10D").mangledNameHash()); ASSERT_EQ(0x0000052cu, ImmutableString("textureGatherOffsets(00I10B70D00D").mangledNameHash());
ASSERT_EQ(0x0000081bu, ImmutableString("textureGatherOffset(00R10B10D").mangledNameHash()); ASSERT_EQ(0x000001d4u, ImmutableString("textureGatherOffsets(00R10B70D00D").mangledNameHash());
ASSERT_EQ(0x000003cau, ImmutableString("textureGatherOffset(00X10B10D").mangledNameHash()); ASSERT_EQ(0x00000254u, ImmutableString("textureGatherOffsets(00X10B70D00D").mangledNameHash());
ASSERT_EQ(0x0000064fu, ImmutableString("textureGatherOffsets(00L20B70D00D").mangledNameHash());
ASSERT_EQ(0x0000060fu, ImmutableString("textureGatherOffsets(00U20B70D00D").mangledNameHash());
ASSERT_EQ(0x000002ffu, ImmutableString("textureGatherOffsets(00a20B70D00D").mangledNameHash());
ASSERT_EQ(0x00000100u, ImmutableString("textureGatherOffsets(00O10B70D00D").mangledNameHash());
ASSERT_EQ(0x00000592u, ImmutableString("textureGatherOffsets(00q10B70D00D").mangledNameHash());
ASSERT_EQ(0x00000698u, ImmutableString("textureGatherOffsets(00v10B70D00D").mangledNameHash());
ASSERT_EQ(0x0000027eu, ImmutableString("textureGatherOffsets(00I10B70D").mangledNameHash());
ASSERT_EQ(0x00000508u, ImmutableString("textureGatherOffsets(00R10B70D").mangledNameHash());
ASSERT_EQ(0x000001fau, ImmutableString("textureGatherOffsets(00X10B70D").mangledNameHash());
ASSERT_EQ(0x00000576u, ImmutableString("textureGatherOffsets(00L20B70D").mangledNameHash());
ASSERT_EQ(0x00000259u, ImmutableString("textureGatherOffsets(00U20B70D").mangledNameHash());
ASSERT_EQ(0x000001acu, ImmutableString("textureGatherOffsets(00a20B70D").mangledNameHash());
ASSERT_EQ(0x00000611u, ImmutableString("textureGatherOffsets(00O10B70D").mangledNameHash());
ASSERT_EQ(0x00000683u, ImmutableString("textureGatherOffsets(00q10B70D").mangledNameHash());
ASSERT_EQ(0x000006f4u, ImmutableString("textureGatherOffsets(00v10B70D").mangledNameHash());
ASSERT_EQ(0x00000330u, ImmutableString("textureGatherOffsets(00d10B00B70D").mangledNameHash());
ASSERT_EQ(0x00000053u, ImmutableString("textureGatherOffsets(00f20B00B70D").mangledNameHash());
ASSERT_EQ(0x000004b3u, ImmutableString("textureGatherOffsets(00n10B00B70D").mangledNameHash());
ASSERT_EQ(0x00000555u, ImmutableString("textureGatherOffset(00I10B10D00D").mangledNameHash()); ASSERT_EQ(0x00000555u, ImmutableString("textureGatherOffset(00I10B10D00D").mangledNameHash());
ASSERT_EQ(0x0000011cu, ImmutableString("textureGatherOffset(00R10B10D00D").mangledNameHash()); ASSERT_EQ(0x0000011cu, ImmutableString("textureGatherOffset(00R10B10D00D").mangledNameHash());
ASSERT_EQ(0x0000082cu, ImmutableString("textureGatherOffset(00X10B10D00D").mangledNameHash()); ASSERT_EQ(0x0000082cu, ImmutableString("textureGatherOffset(00X10B10D00D").mangledNameHash());
ASSERT_EQ(0x00000704u, ImmutableString("textureGatherOffset(00L20B10D").mangledNameHash());
ASSERT_EQ(0x000003a2u, ImmutableString("textureGatherOffset(00U20B10D").mangledNameHash());
ASSERT_EQ(0x00000594u, ImmutableString("textureGatherOffset(00a20B10D").mangledNameHash());
ASSERT_EQ(0x00000247u, ImmutableString("textureGatherOffset(00L20B10D00D").mangledNameHash()); ASSERT_EQ(0x00000247u, ImmutableString("textureGatherOffset(00L20B10D00D").mangledNameHash());
ASSERT_EQ(0x000004ffu, ImmutableString("textureGatherOffset(00U20B10D00D").mangledNameHash()); ASSERT_EQ(0x000004ffu, ImmutableString("textureGatherOffset(00U20B10D00D").mangledNameHash());
ASSERT_EQ(0x0000007fu, ImmutableString("textureGatherOffset(00a20B10D00D").mangledNameHash()); ASSERT_EQ(0x0000007fu, ImmutableString("textureGatherOffset(00a20B10D00D").mangledNameHash());
ASSERT_EQ(0x00000474u, ImmutableString("textureGatherOffset(00O10B10D00D").mangledNameHash());
ASSERT_EQ(0x00000500u, ImmutableString("textureGatherOffset(00q10B10D00D").mangledNameHash());
ASSERT_EQ(0x00000839u, ImmutableString("textureGatherOffset(00v10B10D00D").mangledNameHash());
ASSERT_EQ(0x00000080u, ImmutableString("textureGatherOffset(00I10B10D").mangledNameHash());
ASSERT_EQ(0x0000081bu, ImmutableString("textureGatherOffset(00R10B10D").mangledNameHash());
ASSERT_EQ(0x000003cau, ImmutableString("textureGatherOffset(00X10B10D").mangledNameHash());
ASSERT_EQ(0x00000704u, ImmutableString("textureGatherOffset(00L20B10D").mangledNameHash());
ASSERT_EQ(0x000003a2u, ImmutableString("textureGatherOffset(00U20B10D").mangledNameHash());
ASSERT_EQ(0x00000594u, ImmutableString("textureGatherOffset(00a20B10D").mangledNameHash());
ASSERT_EQ(0x00000148u, ImmutableString("textureGatherOffset(00d10B00B10D").mangledNameHash()); ASSERT_EQ(0x00000148u, ImmutableString("textureGatherOffset(00d10B00B10D").mangledNameHash());
ASSERT_EQ(0x0000030fu, ImmutableString("textureGatherOffset(00f20B00B10D").mangledNameHash()); ASSERT_EQ(0x0000030fu, ImmutableString("textureGatherOffset(00f20B00B10D").mangledNameHash());
ASSERT_EQ(0x00000230u, ImmutableString("textureGatherOffset(00O10B10D").mangledNameHash()); ASSERT_EQ(0x00000230u, ImmutableString("textureGatherOffset(00O10B10D").mangledNameHash());
ASSERT_EQ(0x00000662u, ImmutableString("textureGatherOffset(00q10B10D").mangledNameHash()); ASSERT_EQ(0x00000662u, ImmutableString("textureGatherOffset(00q10B10D").mangledNameHash());
ASSERT_EQ(0x000004f7u, ImmutableString("textureGatherOffset(00v10B10D").mangledNameHash()); ASSERT_EQ(0x000004f7u, ImmutableString("textureGatherOffset(00v10B10D").mangledNameHash());
ASSERT_EQ(0x00000474u, ImmutableString("textureGatherOffset(00O10B10D00D").mangledNameHash());
ASSERT_EQ(0x00000500u, ImmutableString("textureGatherOffset(00q10B10D00D").mangledNameHash());
ASSERT_EQ(0x00000839u, ImmutableString("textureGatherOffset(00v10B10D00D").mangledNameHash());
ASSERT_EQ(0x000000cbu, ImmutableString("textureGatherOffset(00n10B00B10D").mangledNameHash()); ASSERT_EQ(0x000000cbu, ImmutableString("textureGatherOffset(00n10B00B10D").mangledNameHash());
ASSERT_EQ(0x0000027eu, ImmutableString("textureGatherOffsets(00I10B70D").mangledNameHash());
ASSERT_EQ(0x00000508u, ImmutableString("textureGatherOffsets(00R10B70D").mangledNameHash());
ASSERT_EQ(0x000001fau, ImmutableString("textureGatherOffsets(00X10B70D").mangledNameHash());
ASSERT_EQ(0x0000052cu, ImmutableString("textureGatherOffsets(00I10B70D00D").mangledNameHash());
ASSERT_EQ(0x000001d4u, ImmutableString("textureGatherOffsets(00R10B70D00D").mangledNameHash());
ASSERT_EQ(0x00000254u, ImmutableString("textureGatherOffsets(00X10B70D00D").mangledNameHash());
ASSERT_EQ(0x00000576u, ImmutableString("textureGatherOffsets(00L20B70D").mangledNameHash());
ASSERT_EQ(0x00000259u, ImmutableString("textureGatherOffsets(00U20B70D").mangledNameHash());
ASSERT_EQ(0x000001acu, ImmutableString("textureGatherOffsets(00a20B70D").mangledNameHash());
ASSERT_EQ(0x0000064fu, ImmutableString("textureGatherOffsets(00L20B70D00D").mangledNameHash());
ASSERT_EQ(0x0000060fu, ImmutableString("textureGatherOffsets(00U20B70D00D").mangledNameHash());
ASSERT_EQ(0x000002ffu, ImmutableString("textureGatherOffsets(00a20B70D00D").mangledNameHash());
ASSERT_EQ(0x00000611u, ImmutableString("textureGatherOffsets(00O10B70D").mangledNameHash());
ASSERT_EQ(0x00000683u, ImmutableString("textureGatherOffsets(00q10B70D").mangledNameHash());
ASSERT_EQ(0x000006f4u, ImmutableString("textureGatherOffsets(00v10B70D").mangledNameHash());
ASSERT_EQ(0x00000100u, ImmutableString("textureGatherOffsets(00O10B70D00D").mangledNameHash());
ASSERT_EQ(0x00000592u, ImmutableString("textureGatherOffsets(00q10B70D00D").mangledNameHash());
ASSERT_EQ(0x00000698u, ImmutableString("textureGatherOffsets(00v10B70D00D").mangledNameHash());
ASSERT_EQ(0x00000330u, ImmutableString("textureGatherOffsets(00d10B00B70D").mangledNameHash());
ASSERT_EQ(0x00000053u, ImmutableString("textureGatherOffsets(00f20B00B70D").mangledNameHash());
ASSERT_EQ(0x00000515u, ImmutableString("textureGatherOffsets(00n10B00B70D").mangledNameHash());
ASSERT_EQ(0x0000053du, ImmutableString("dFdxFine(00B").mangledNameHash()); ASSERT_EQ(0x0000053du, ImmutableString("dFdxFine(00B").mangledNameHash());
ASSERT_EQ(0x000004aeu, ImmutableString("dFdxFine(10B").mangledNameHash()); ASSERT_EQ(0x000004aeu, ImmutableString("dFdxFine(10B").mangledNameHash());
ASSERT_EQ(0x0000068du, ImmutableString("dFdxFine(20B").mangledNameHash()); ASSERT_EQ(0x0000068du, ImmutableString("dFdxFine(20B").mangledNameHash());
...@@ -2332,8 +2332,8 @@ TEST(ImmutableStringTest, ScriptGeneratedHashesMatch) ...@@ -2332,8 +2332,8 @@ TEST(ImmutableStringTest, ScriptGeneratedHashesMatch)
ASSERT_EQ(0x00000005u, ImmutableString("rgb_2_yuv").unmangledNameHash()); ASSERT_EQ(0x00000005u, ImmutableString("rgb_2_yuv").unmangledNameHash());
ASSERT_EQ(0x00000007u, ImmutableString("yuv_2_rgb").unmangledNameHash()); ASSERT_EQ(0x00000007u, ImmutableString("yuv_2_rgb").unmangledNameHash());
ASSERT_EQ(0x00000079u, ImmutableString("textureGather").unmangledNameHash()); ASSERT_EQ(0x00000079u, ImmutableString("textureGather").unmangledNameHash());
ASSERT_EQ(0x00000069u, ImmutableString("textureGatherOffset").unmangledNameHash());
ASSERT_EQ(0x00000075u, ImmutableString("textureGatherOffsets").unmangledNameHash()); ASSERT_EQ(0x00000075u, ImmutableString("textureGatherOffsets").unmangledNameHash());
ASSERT_EQ(0x00000069u, ImmutableString("textureGatherOffset").unmangledNameHash());
ASSERT_EQ(0x0000001au, ImmutableString("dFdxFine").unmangledNameHash()); ASSERT_EQ(0x0000001au, ImmutableString("dFdxFine").unmangledNameHash());
ASSERT_EQ(0x0000006du, ImmutableString("dFdyFine").unmangledNameHash()); ASSERT_EQ(0x0000006du, ImmutableString("dFdyFine").unmangledNameHash());
ASSERT_EQ(0x00000085u, ImmutableString("dFdxCoarse").unmangledNameHash()); ASSERT_EQ(0x00000085u, ImmutableString("dFdxCoarse").unmangledNameHash());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment