UnityEngine.RenderBuffer.GetNativeRenderBufferPtr C# (CSharp) Method

GetNativeRenderBufferPtr() public method

Returns native RenderBuffer. Be warned this is not native Texture, but rather pointer to unity struct that can be used with native unity API. Currently such API exists only on iOS.

public GetNativeRenderBufferPtr ( ) : IntPtr
return System.IntPtr
        public IntPtr GetNativeRenderBufferPtr()
        {
            return RenderBufferHelper.GetNativeRenderBufferPtr(this.m_BufferPtr);
        }
    }

Usage Example

コード例 #1
0
// fields

// properties

// methods

    static bool RenderBuffer_GetNativeRenderBufferPtr(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 0)
        {
            UnityEngine.RenderBuffer argThis = (UnityEngine.RenderBuffer)vc.csObj;                JSApi.setIntPtr((int)JSApi.SetType.Rval, (System.IntPtr)(argThis.GetNativeRenderBufferPtr()));
            JSMgr.changeJSObj(vc.jsObjID, argThis);
        }

        return(true);
    }