-
Notifications
You must be signed in to change notification settings - Fork 4
README
A graphics utility to update textures from native plugins.
NonBlockingCustomTextureRenderer
is a high performance graphics utility to update textures from native plugins.
The function for updating textures runs on another thread.
Asynchronous GPU upload (partial data copy) reduces the processing time per frame in the main thread for large size textures.
NonBlockingCustomTextureRenderer
is available on IL2CPP.
CustomTextureRenderer
is an example to update textures from native plugins
using CommandBuffer.IssuePluginCustomTextureUpdateV2.
The function for updating textures runs on Unity's Render Thread.
CustomTextureRenderer
does not work on IL2CPP.
NotSupportedException:
IL2CPP does not support marshaling delegates that point to instance methods to native code.
The method we're attempting to marshal is: UnityCustomTextureRenderer.CustomTextureRenderer::TextureUpdateCallback
UnityCustomTextureRenderer.CustomTextureRenderer.Update () (at <00000000000000000000000000000000>:0)
UnityCustomTextureRenderer.Samples.Test.Update () (at <00000000000000000000000000000000>:0)
- Unity 2020.3.27f1
- Windows 10
// manifest.json
{
"dependencies": {
"jp.sotanmochi.unitycustomtexturerenderer": "https://github.com/sotanmochi/UnityCustomTextureRenderer.git?path=Assets/CustomTextureRenderer#v1.1.0",
"jp.sotanmochi.unitycustomtexturerenderer.samples": "https://github.com/sotanmochi/UnityCustomTextureRenderer.git?path=Assets/CustomTextureRenderer.Samples#v1.1.0",
...
}
}
- UnityグラフィックスAPI総点検!〜最近こんなの増えてました〜 - Unityステーション
- https://github.com/keijiro/TextureUpdateExample
このプロジェクトは、サードパーティのアセットを除き、MIT Licenseでライセンスされています。
This project is licensed under the MIT License, except for third party assets.