diff options
| author | Yong He <yonghe@outlook.com> | 2024-04-23 12:14:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-23 12:14:21 -0700 |
| commit | f1de1817ca10e34ec6a844100f10f0de3340c9f2 (patch) | |
| tree | 63e631a3c546107f450ab5153e630c5b4a0dc33a /source/slang/hlsl.meta.slang | |
| parent | 0d9206855888d694e0b8f91be4524b57293773d6 (diff) | |
Switch to direct-to-spirv backend as default. (#4002)
* Switch to direct-to-spirv backend as default.
* Fix slang-test.
* Fix.
* Fix.
Diffstat (limited to 'source/slang/hlsl.meta.slang')
| -rw-r--r-- | source/slang/hlsl.meta.slang | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang index 16b143529..1002fb163 100644 --- a/source/slang/hlsl.meta.slang +++ b/source/slang/hlsl.meta.slang @@ -1961,7 +1961,7 @@ extension __TextureImpl<T,Shape,isArray,0,sampleCount,$(access),isShadow, 0,form case spirv: return spirv_asm { - OpImageWrite $this $location $newValue; + OpImageWrite $this $location __convertTexel(newValue); }; } } @@ -2073,7 +2073,7 @@ extension __TextureImpl<T,Shape,isArray,1,sampleCount,$(access),isShadow, 0,form case spirv: return spirv_asm { - OpImageWrite $this $location $newValue Sample $sampleIndex; + OpImageWrite $this $location __convertTexel(newValue) Sample $sampleIndex; }; } } @@ -10650,7 +10650,7 @@ ${{{{ case hlsl: __intrinsic_asm "($0)[$1] = $2"; case glsl: __intrinsic_asm "imageStore($0, int($1), $V2)"; case spirv: spirv_asm { - OpImageWrite $this $index $newValue; + OpImageWrite $this $index __convertTexel(newValue); }; } } |
