pub struct CompiledPass<'a> { /* private fields */ }Expand description
One pass, after compilation.
Implementations§
Source§impl CompiledPass<'_>
impl CompiledPass<'_>
Sourcepub const fn barriers(&self) -> &GraphBarriers
pub const fn barriers(&self) -> &GraphBarriers
The barriers emitted immediately before it.
Sourcepub const fn release_barriers(&self) -> &GraphBarriers
pub const fn release_barriers(&self) -> &GraphBarriers
The barriers emitted immediately after it — the release half of any
queue-ownership transfer a later pass acquires. See
crcbl_hal::QueueTransfer on why a transfer is two barriers.
Sourcepub const fn queue(&self) -> Handle<Queue>
pub const fn queue(&self) -> Handle<Queue>
The queue it was declared on.
Always the graph’s default in the MVP — uploads share the graphics+compute queue — but the field is what makes a second queue additive rather than a barrier-model rewrite, which stage 2’s corrections require from the start.
Sourcepub const fn render_area(&self) -> Rect2d
pub const fn render_area(&self) -> Rect2d
The region a render pass covers. Zero-sized for a compute pass.
Sourcepub fn reads_buffer(&self, buffer: BufferId) -> bool
pub fn reads_buffer(&self, buffer: BufferId) -> bool
Whether it declared a read of buffer.
Compilation walks passes in declaration order and never reorders them, so a pass that omits the declaration still runs after the barrier the first reader earned — the omission is invisible in the compiled barriers. This is what lets a test assert the declaration itself.