Mojo struct
FragmentCoords
struct FragmentCoords[stageN: Int, repeats: Int]
Fragment element coordinates for tcgen05 16x256b matrix layout.
Fieldsβ
- βtop_upper (
StaticTuple[UInt32, 2]): - βbottom_upper (
StaticTuple[UInt32, 2]): - βtop_lower (
StaticTuple[UInt32, 2]): - βbottom_lower (
StaticTuple[UInt32, 2]):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
load_widthβ
comptime load_width = 2
threads_per_rowβ
comptime threads_per_row = ((stageN // repeats) // 2)
Methodsβ
__init__β
__init__(lane_id: UInt32) -> Self
Compute (row, col) for each fragment position from lane ID.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!