You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Assets/CustomTextureRenderer/README.md
+18-12Lines changed: 18 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,29 @@
1
1
# UnityCustomTextureRenderer
2
2
3
-
A graphics utility to update textures from native plugins.
4
-
The function for updating textures runs on Unity's Render Thread or another thread.
3
+
A graphics utility to update textures from native plugins.
5
4
6
-
IL2CPP is currently not supported.
5
+
## NonBlockingCustomTextureRenderer
6
+
`NonBlockingCustomTextureRenderer` is a high performance graphics utility to update textures from native plugins.
7
+
8
+
The function for updating textures runs on another thread.
9
+
Asynchronous GPU upload (partial data copy) reduces the processing time per frame in the main thread for large size textures.
10
+
11
+
`NonBlockingCustomTextureRenderer` is available on IL2CPP.
12
+
13
+
## CustomTextureRenderer
14
+
`CustomTextureRenderer` is an example to update textures from native plugins
15
+
using [CommandBuffer.IssuePluginCustomTextureUpdateV2](https://docs.unity3d.com/ScriptReference/Rendering.CommandBuffer.IssuePluginCustomTextureUpdateV2.html).
16
+
17
+
The function for updating textures runs on Unity's Render Thread.
18
+
19
+
`CustomTextureRenderer` does not work on IL2CPP.
7
20
```
8
21
NotSupportedException:
9
22
IL2CPP does not support marshaling delegates that point to instance methods to native code.
10
23
The method we're attempting to marshal is: UnityCustomTextureRenderer.CustomTextureRenderer::TextureUpdateCallback
The function for updating textures runs on another thread.
11
11
Asynchronous GPU upload (partial data copy) reduces the processing time per frame in the main thread for large size textures.
@@ -16,7 +16,7 @@ Asynchronous GPU upload (partial data copy) reduces the processing time per fram
16
16
`CustomTextureRenderer` is an example to update textures from native plugins
17
17
using [CommandBuffer.IssuePluginCustomTextureUpdateV2](https://docs.unity3d.com/ScriptReference/Rendering.CommandBuffer.IssuePluginCustomTextureUpdateV2.html).
0 commit comments