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
Type | Name | Description |
---|---|---|
JobHandle | deps |
T * GetInputPointer
public T * GetInputPointer()
T * GetOutputPointerReadOnly
public T * GetOutputPointerReadOnly()
NativeSyncBuffer
public NativeSyncBuffer(
Allocator allocator,
T initialState =default
)
Parameters
Type | Name | Description |
---|---|---|
Allocator | allocator | |
T | initialState |
void Sync
public void Sync()
JobHandle Sync
public JobHandle Sync(
JobHandle deps
)
Parameters
Type | Name | Description |
---|---|---|
JobHandle | deps |
void UpdateInput
public void UpdateInput(
in T data
)
Parameters
Type | Name | Description |
---|---|---|
in T | data |
JobHandle UpdateInputAsync
public JobHandle UpdateInputAsync(
in T data,
JobHandle deps
)
Parameters
Type | Name | Description |
---|---|---|
in T | data | |
JobHandle | deps |
Public Attributes
IsValid
public bool IsValid => m_BufferData != null && m_Allocator != Allocator.Invalid;
Output
public T Output => *GetOutputPointerReadOnly();