diff options
| author | ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> | 2025-08-26 10:48:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-26 17:48:49 +0000 |
| commit | b36659eca38be716bee43c01c6584bda5f91166a (patch) | |
| tree | a7e309179242dd9976b50f6ca6d198eb687f138f /source/slang/slang-target-program.h | |
| parent | 70d70c1d315a91ed414892fb70974026082bcc99 (diff) | |
Fix `shouldEmitSPIRVDirectly` (#8019)
Fixes: #8018
Changes:
* Do not emit true for `shouldEmitSPIRVDirectly` with a GLSL target
Diffstat (limited to 'source/slang/slang-target-program.h')
| -rw-r--r-- | source/slang/slang-target-program.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-target-program.h b/source/slang/slang-target-program.h index 57a9c46fb..44fc36604 100644 --- a/source/slang/slang-target-program.h +++ b/source/slang/slang-target-program.h @@ -108,7 +108,7 @@ public: bool shouldEmitSPIRVDirectly() { - return isKhronosTarget(m_targetReq) && getOptionSet().shouldEmitSPIRVDirectly(); + return isSPIRV(m_targetReq->getTarget()) && getOptionSet().shouldEmitSPIRVDirectly(); } private: |
