Commit c8ec006
Framebuffer: sampleable resolve-depth target under MSAA
When multisampled, also create a single-sample, sampleable depth texture
returned by resolveDepthTexture(), so the application can resolve the
multisampled depth into it (there is no depth store-op resolve) and sample
it — e.g. for soft particles. Without MSAA, resolveDepthTexture() continues
to return the single-sample depth attachment directly.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 8e26427 commit c8ec006
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
200 | 214 | | |
201 | 215 | | |
202 | 216 | | |
| |||
0 commit comments