For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
DoubleBuffer
struct DoubleBuffer[dtype: DType]
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable
Methodsβ
__init__β
def __init__(out self)
def __init__(out self, current: UnsafePointer[Scalar[dtype], MutUntrackedOrigin], alternate: UnsafePointer[Scalar[dtype], MutUntrackedOrigin], size: Int)
def __init__(out self, *, copy: Self)
currentβ
def current(self, ctx: DeviceContext) -> DeviceBuffer[dtype]
Returns:
DeviceBuffer[dtype]
alternateβ
def alternate(self, ctx: DeviceContext) -> DeviceBuffer[dtype]
Returns:
DeviceBuffer[dtype]
swapβ
def swap(mut self)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!