修改水
This commit is contained in:
27
Assets/Obi/Scripts/Common/Backends/Oni/OniJobHandle.cs
Normal file
27
Assets/Obi/Scripts/Common/Backends/Oni/OniJobHandle.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
#if (OBI_ONI_SUPPORTED)
|
||||
using System;
|
||||
|
||||
namespace Obi
|
||||
{
|
||||
public class OniJobHandle : IObiJobHandle
|
||||
{
|
||||
private IntPtr pointer = IntPtr.Zero;
|
||||
|
||||
public OniJobHandle SetPointer(IntPtr newPtr)
|
||||
{
|
||||
pointer = newPtr;
|
||||
return this;
|
||||
}
|
||||
|
||||
public void Complete()
|
||||
{
|
||||
Oni.Complete(pointer);
|
||||
}
|
||||
|
||||
public void Release()
|
||||
{
|
||||
pointer = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user