Commit 959675e
refactor: name the Direct3D12 transition pass after Direct3D12 concepts
Review feedback from @Ethereal77 on #3329.
"Attachment" is a Vulkan term. Direct3D12 has a resource, a view, and a barrier
that says how the resource is used. IsBoundAsAttachment becomes
IsBoundAsRenderTargetOrDepth, and the comment beside it drops the same word.
The type test moves from that helper to the loop that calls it. A reader of the
loop now sees which resources the pass acts on, and the helper takes a Texture,
so the question of what happens to a Buffer no longer arises at the call site.
Buffers stay out of scope, which matches the Vulkan pass. That pass skips any
descriptor that is not a sampled or storage image. A buffer barrier also
replaces the whole access mask, and nothing restores the vertex, index or
constant buffer access a buffer may still need, because binding those emits no
barrier. Covering buffers means combining every access a buffer is currently
bound for, and both backends should gain that together.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent ccf564d commit 959675e
3 files changed
Lines changed: 15 additions & 22 deletions
File tree
- sources/engine/Stride.Graphics/Direct3D12
Lines changed: 13 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | 413 | | |
420 | 414 | | |
421 | 415 | | |
422 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
| 439 | + | |
441 | 440 | | |
442 | 441 | | |
443 | | - | |
444 | | - | |
445 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
446 | 445 | | |
447 | 446 | | |
448 | 447 | | |
449 | | - | |
| 448 | + | |
450 | 449 | | |
451 | 450 | | |
452 | 451 | | |
453 | 452 | | |
454 | 453 | | |
455 | | - | |
| 454 | + | |
456 | 455 | | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | 456 | | |
461 | 457 | | |
462 | 458 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
| 127 | + | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | 251 | | |
255 | 252 | | |
256 | 253 | | |
| |||
0 commit comments