From 7c8527d20e433c3a10736136d31e4cd882a3baaa Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 4 Oct 2019 09:46:03 -0400 Subject: IR types for subset of Attributes (#1067) * IROutputControlPointsDecoration * IROutputTopologyDecoration * IRPartitioningDecoration * IRDomainDecoration * Use IRPatchConstantDecoration alone for hlsl output. * IRMaxVertexCountDecoration * IRInstanceDecoration * Removed _emitHLSLAttributeSingleString and _emitHLSLAttributeSingleInt Removed GLSLBindingAttribute and just use NumThreadsAttribute * Added IRNumThreadsDecoration. * Added IRNumThreadsDecoration * Fix build problem on x86. Improve diagnostic text based on review. --- source/slang/slang-reflection.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'source/slang/slang-reflection.cpp') 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(entryPointFunc.getDecl()->ParentDecl); - if (module) - { - for (auto dd : module->Members) - { - for (auto mod : dd->GetModifiersOfType()) - { - if (auto xMod = as(mod)) - sizeAlongAxis[0] = (SlangUInt) getIntegerLiteralValue(xMod->valToken); - else if (auto yMod = as(mod)) - sizeAlongAxis[1] = (SlangUInt) getIntegerLiteralValue(yMod->valToken); - else if (auto zMod = as(mod)) - sizeAlongAxis[2] = (SlangUInt) getIntegerLiteralValue(zMod->valToken); - } - } - } - } // -- cgit v1.2.3