diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-10-04 09:46:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-04 09:46:03 -0400 |
| commit | 7c8527d20e433c3a10736136d31e4cd882a3baaa (patch) | |
| tree | 44032051a4d76c8773b8a503dae14d9c8c9e786d /source/slang/slang-reflection.cpp | |
| parent | 0bc7d9b0aeb77c40befeb3618240a065374216a1 (diff) | |
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.
Diffstat (limited to 'source/slang/slang-reflection.cpp')
| -rw-r--r-- | source/slang/slang-reflection.cpp | 21 |
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); - } - } - } - } // |
