Skip to main content
Version: 12 Dec 2024

NativeSyncBuffer

NameSpace: MagicLeap

Inherits from:
IDisposable

Detailed Description

package template <T > struct NativeSyncBuffer : IDisposable 

Public Fields

Input


public T Input { get; set; }


Public Methods

void Dispose

public void Dispose()

JobHandle Dispose

public JobHandle Dispose(
JobHandle deps
)

Parameters

TypeNameDescription
JobHandledeps

T * GetInputPointer

public T * GetInputPointer()

T * GetOutputPointerReadOnly

public T * GetOutputPointerReadOnly()

NativeSyncBuffer

public NativeSyncBuffer(
Allocator allocator,
T initialState =default
)

Parameters

TypeNameDescription
Allocatorallocator
TinitialState

void Sync

public void Sync()

JobHandle Sync

public JobHandle Sync(
JobHandle deps
)

Parameters

TypeNameDescription
JobHandledeps

void UpdateInput

public void UpdateInput(
in T data
)

Parameters

TypeNameDescription
in Tdata

JobHandle UpdateInputAsync

public JobHandle UpdateInputAsync(
in T data,
JobHandle deps
)

Parameters

TypeNameDescription
in Tdata
JobHandledeps

Public Attributes

IsValid


public bool IsValid => m_BufferData != null && m_Allocator != Allocator.Invalid;


Output


public T Output => *GetOutputPointerReadOnly();