Files
metal2vulkan/crates
Anees Iqbal fcbb221b5f rt test: a render pipeline takes the loop's colour flag only where a draw reads its attachment (red)
Every render pipeline is made with VK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT on a
device with the attachment feedback loop, whether or not a draw reads an attachment through it.
Vulkan asks for the flag only where a draw reads, as a non-attachment, an attachment that is in
the feedback layout (vkspec 8.10.2).

The test replaces the one that held every pipeline to the flag:
- an ordinary pass draws a state whose fragment function reads no texture and one whose function
  reads a texture no attachment renders; each state's pipelines carry no flag;
- two passes draw blue, then, after a memory barrier, each pixel read plus green; the reading draw
  makes its state's flagged pipeline once, at the first pass, and every pixel reads blue plus
  green each time, each reading draw one attachment_loop_reads;
- a device without the loop makes every pipeline with no flag and reads through a copy.

RenderCompiled::made_flags, for the device tests, lists the create flags of each pipeline a
content made.

Red here on a device with the loop: the ordinary pass's pipelines carry the flag.
2026-12-02 18:17:41 -08:00
..