diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-24 13:53:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-24 13:53:50 -0700 |
| commit | 3f64f63928b24a44fb29ae5459354c6e7f6bb932 (patch) | |
| tree | ab869eac52403aa489e03de9d8469b5fce10f7c8 | |
| parent | 2d4cd997bcc95cb13552b540c376a8200f3766d5 (diff) | |
Remove [__readNone] on clip. (#3016)
Co-authored-by: Yong He <yhe@nvidia.com>
| -rw-r--r-- | source/slang/hlsl.meta.slang | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang index ebc91095f..58ddb1401 100644 --- a/source/slang/hlsl.meta.slang +++ b/source/slang/hlsl.meta.slang @@ -1450,7 +1450,6 @@ matrix<T,N,M> clamp(matrix<T,N,M> x, matrix<T,N,M> minBound, matrix<T,N,M> maxBo // Clip (discard) fragment conditionally __generic<T : __BuiltinFloatingPointType> __target_intrinsic(hlsl) -[__readNone] void clip(T x) { if(x < T(0)) discard; @@ -1458,7 +1457,6 @@ void clip(T x) __generic<T : __BuiltinFloatingPointType, let N : int> __target_intrinsic(hlsl) -[__readNone] void clip(vector<T,N> x) { if(any(x < T(0))) discard; @@ -1466,7 +1464,6 @@ void clip(vector<T,N> x) __generic<T : __BuiltinFloatingPointType, let N : int, let M : int> __target_intrinsic(hlsl) -[__readNone] void clip(matrix<T,N,M> x) { if(any(x < T(0))) discard; |
