summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-reflection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-reflection.cpp')
-rw-r--r--source/slang/slang-reflection.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/source/slang/slang-reflection.cpp b/source/slang/slang-reflection.cpp
index a6015b31c..f2c4973ed 100644
--- a/source/slang/slang-reflection.cpp
+++ b/source/slang/slang-reflection.cpp
@@ -1267,27 +1267,6 @@ SLANG_API void spReflectionEntryPoint_getComputeThreadGroupSize(
sizeAlongAxis[1] = numThreadsAttribute->y;
sizeAlongAxis[2] = numThreadsAttribute->z;
}
- else
- {
- // Fall back to the GLSL case, which requires a search over global-scope declarations
- // to look for as with the `local_size_*` qualifier
- auto module = as<ModuleDecl>(entryPointFunc.getDecl()->ParentDecl);
- if (module)
- {
- for (auto dd : module->Members)
- {
- for (auto mod : dd->GetModifiersOfType<GLSLLocalSizeLayoutModifier>())
- {
- if (auto xMod = as<GLSLLocalSizeXLayoutModifier>(mod))
- sizeAlongAxis[0] = (SlangUInt) getIntegerLiteralValue(xMod->valToken);
- else if (auto yMod = as<GLSLLocalSizeYLayoutModifier>(mod))
- sizeAlongAxis[1] = (SlangUInt) getIntegerLiteralValue(yMod->valToken);
- else if (auto zMod = as<GLSLLocalSizeZLayoutModifier>(mod))
- sizeAlongAxis[2] = (SlangUInt) getIntegerLiteralValue(zMod->valToken);
- }
- }
- }
- }
//