summaryrefslogtreecommitdiffstats
path: root/tests/spirv/image-atomic-array.slang
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2024-05-08 12:25:11 -0700
committerGitHub <noreply@github.com>2024-05-08 12:25:11 -0700
commit708345d16a877ac164171439cf9b4ea825b78d23 (patch)
treecb55913f8a45db4cdfd0aa1d5d6f8d4698f14696 /tests/spirv/image-atomic-array.slang
parent6d917a02bb307300ac14c8b028c47fcdcc07100b (diff)
Fix crash in obfuscation (#4134)
Slang crashes during obfuscation because of referencing the nullptr pointer. Add the checking. In addition, above situation happens when user provide an empty slang shader with '-obfuscate' option, we shouldn't do anything in that case. So add an early return in obfuscateModuleLocs if no IR code is actually generated.
Diffstat (limited to 'tests/spirv/image-atomic-array.slang')
0 files changed, 0 insertions, 0 deletions