Commit cd6aeb7
committed
Fix documentation of __targetHasImplicitDerivatives()
Also, add capability `implicit_derivatives_sampling`. This should be a
requirement for functions such as _Texture.Sample() and
_Texture.CalculateLevelOfDetail(). But currently this cannot be
achieved without complex __target_switch/__stage_switch constructs in
GLSL texture() functions due to requirement inheritance.
Further, enforcing this requirements with static_assert() does not
allow capabilities to be inferred, which has too high a likelihood of
breaking existing code. So, we're not doing that in this patch,
either. Instead, we accept that we can generate invalid code without
diagnostics for now.
Issue #86831 parent 01fdbb8 commit cd6aeb7
File tree
4 files changed
+33
-1
lines changed- docs
- user-guide
- source/slang
4 files changed
+33
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1523 | 1523 | | |
1524 | 1524 | | |
1525 | 1525 | | |
| 1526 | + | |
1526 | 1527 | | |
1527 | 1528 | | |
1528 | 1529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
1127 | 1141 | | |
1128 | 1142 | | |
1129 | 1143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
| 703 | + | |
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2033 | 2033 | | |
2034 | 2034 | | |
2035 | 2035 | | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
2036 | 2053 | | |
2037 | 2054 | | |
2038 | 2055 | | |
| |||
0 commit comments