diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-11-13 13:35:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-13 13:35:56 -0500 |
| commit | 9604118401f185c0e1a213b8e99dad060c6263bc (patch) | |
| tree | b2a651f72f8f6f10afad74ba7cdc91376aa0f2d5 /source/slang/slang-reflection.cpp | |
| parent | 166a7387cb3a83b24dd4b9279877338c758eb8b6 (diff) | |
* Added getCStr(Name*) (#1121)
* Added the name to the EntryPointLayout so is always available
* Made spReflectionEntryPoint_getName use name
* Improved checking for entry point name in render-test
* Improved COMPILE test type to allow failure and output of failure.
Diffstat (limited to 'source/slang/slang-reflection.cpp')
| -rw-r--r-- | source/slang/slang-reflection.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/slang/slang-reflection.cpp b/source/slang/slang-reflection.cpp index f2c4973ed..59130b0fc 100644 --- a/source/slang/slang-reflection.cpp +++ b/source/slang/slang-reflection.cpp @@ -1210,9 +1210,7 @@ SLANG_API char const* spReflectionEntryPoint_getName( SlangReflectionEntryPoint* inEntryPoint) { auto entryPointLayout = convert(inEntryPoint); - if(!entryPointLayout) return 0; - - return getText(entryPointLayout->entryPoint.GetName()).begin(); + return entryPointLayout ? getCstr(entryPointLayout->name) : nullptr; } SLANG_API unsigned spReflectionEntryPoint_getParameterCount( |
