Skip to main content
Log in

Mojo struct

PipelineState

@register_passable(trivial) struct PipelineState[num_stages: Int]

Implemented traits

AnyType, Copyable, ExplicitlyCopyable, Movable, UnknownDestructibility

Methods

__init__

__init__() -> Self

index

index(self) -> Int

phase

phase(self) -> SIMD[uint32, 1]

step

step(mut self)

This function increase the index and count. Index will circle back to 0 when it equals to the num_stage.