Skip to content

Commit 75f4138

Browse files
committed
Update README
1 parent af37aea commit 75f4138

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

Assets/CustomTextureRenderer/README.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
11
# UnityCustomTextureRenderer
22

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.
54

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.
720
```
821
NotSupportedException:
922
IL2CPP does not support marshaling delegates that point to instance methods to native code.
1023
The method we're attempting to marshal is: UnityCustomTextureRenderer.CustomTextureRenderer::TextureUpdateCallback
1124
UnityCustomTextureRenderer.CustomTextureRenderer.Update () (at <00000000000000000000000000000000>:0)
1225
UnityCustomTextureRenderer.Samples.Test.Update () (at <00000000000000000000000000000000>:0)
1326
```
14-
```
15-
NotSupportedException:
16-
IL2CPP does not support marshaling delegates that point to instance methods to native code.
17-
The method we're attempting to marshal is: UnityCustomTextureRenderer.NonBlockingCustomTextureRenderer::TextureUpdateCallback
18-
UnityCustomTextureRenderer.NonBlockingCustomTextureRenderer.Update () (at <00000000000000000000000000000000>:0)
19-
UnityCustomTextureRenderer.Samples.Test.Update () (at <00000000000000000000000000000000>:0)
20-
```
2127

2228
## Tested Environment
2329
- Unity 2020.3.27f1
@@ -40,5 +46,5 @@ UnityCustomTextureRenderer.Samples.Test.Update () (at <0000000000000000000000000
4046
- https://github.com/keijiro/TextureUpdateExample
4147

4248
## License
43-
このライブラリは、MIT Licenseでライセンスされています。
44-
This library is licensed under the MIT License.
49+
このプロジェクトは、サードパーティのアセットを除き、MIT Licenseでライセンスされています。
50+
This project is licensed under the MIT License, except for third party assets.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A graphics utility to update textures from native plugins.
55
## NonBlockingCustomTextureRenderer
66
`NonBlockingCustomTextureRenderer` is a high performance graphics utility to update textures from native plugins.
77

8-
<image src="./Docs/NonBlockingCustomTextureRenderer.gif" width="40%">
8+
<image src="./Docs/NonBlockingCustomTextureRenderer.gif" width="80%">
99

1010
The function for updating textures runs on another thread.
1111
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
1616
`CustomTextureRenderer` is an example to update textures from native plugins
1717
using [CommandBuffer.IssuePluginCustomTextureUpdateV2](https://docs.unity3d.com/ScriptReference/Rendering.CommandBuffer.IssuePluginCustomTextureUpdateV2.html).
1818

19-
<image src="./Docs/CustomTextureRenderer.gif" width="40%">
19+
<image src="./Docs/CustomTextureRenderer.gif" width="80%">
2020

2121
The function for updating textures runs on Unity's Render Thread.
2222

0 commit comments

Comments
 (0)