Skip to main content

Mojo struct

ClockType

@register_passable(trivial) struct ClockType

Fields

  • code (SIMD[int32, 1]):

Implemented traits

AnyType, Copyable, EqualityComparable, Movable, UnknownDestructibility

Aliases

GRAPHICS

alias GRAPHICS = ClockType(__init__[__mlir_type.!pop.int_literal](0))

Graphics clock domain

MEM

alias MEM = ClockType(__init__[__mlir_type.!pop.int_literal](2))

Memory clock domain

SM

alias SM = ClockType(__init__[__mlir_type.!pop.int_literal](1))

SM clock domain

VIDEO

alias VIDEO = ClockType(__init__[__mlir_type.!pop.int_literal](2))

Video clock domain

Methods

__eq__

__eq__(self, other: Self) -> Bool

__ne__

__ne__(self, other: Self) -> Bool

Was this page helpful?