Skip to content

Commit 2a653bd

Browse files
committed
Update README
1 parent ff52387 commit 2a653bd

File tree

2 files changed

+8
-56
lines changed

2 files changed

+8
-56
lines changed

Assets/CustomTextureRenderer/README.md

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,9 @@
11
# UnityCustomTextureRenderer
22

3-
A graphics utility to update textures from native plugins.
4-
5-
## NonBlockingCustomTextureRenderer
6-
`NonBlockingCustomTextureRenderer` is a high performance graphics utility to update textures from native plugins.
7-
8-
<image src="https://user-images.githubusercontent.com/16936357/153717382-8ad7ebed-3f41-4830-9bfe-8bf02e967e90.gif">
9-
3+
A high performance graphics utility to update textures from native plugins.
104
The function for updating textures runs on another thread.
11-
Asynchronous GPU upload (partial data copy) reduces the processing time per frame in the main thread for large size textures.
12-
13-
`NonBlockingCustomTextureRenderer` is available on IL2CPP.
14-
15-
## CustomTextureRenderer
16-
`CustomTextureRenderer` is an example to update textures from native plugins
17-
using [CommandBuffer.IssuePluginCustomTextureUpdateV2](https://docs.unity3d.com/ScriptReference/Rendering.CommandBuffer.IssuePluginCustomTextureUpdateV2.html).
185

19-
<image src="https://user-images.githubusercontent.com/16936357/153717393-da4bee23-5584-42dc-8823-6de54199e3c1.gif">
20-
21-
The function for updating textures runs on Unity's Render Thread.
22-
23-
`CustomTextureRenderer` does not work on IL2CPP.
24-
```
25-
NotSupportedException:
26-
IL2CPP does not support marshaling delegates that point to instance methods to native code.
27-
The method we're attempting to marshal is: UnityCustomTextureRenderer.CustomTextureRenderer::TextureUpdateCallback
28-
UnityCustomTextureRenderer.CustomTextureRenderer.Update () (at <00000000000000000000000000000000>:0)
29-
UnityCustomTextureRenderer.Samples.Test.Update () (at <00000000000000000000000000000000>:0)
30-
```
6+
<image src="./Docs/NonBlockingCustomTextureRenderer.gif">
317

328
## Tested Environment
339
- Unity 2020.3.27f1
@@ -38,8 +14,8 @@ UnityCustomTextureRenderer.Samples.Test.Update () (at <0000000000000000000000000
3814
// manifest.json
3915
{
4016
"dependencies": {
41-
"jp.sotanmochi.unitycustomtexturerenderer": "https://github.com/sotanmochi/UnityCustomTextureRenderer.git?path=Assets/CustomTextureRenderer#v1.1.1",
42-
"jp.sotanmochi.unitycustomtexturerenderer.samples": "https://github.com/sotanmochi/UnityCustomTextureRenderer.git?path=Assets/CustomTextureRenderer.Samples#v1.1.1",
17+
"jp.sotanmochi.unitycustomtexturerenderer": "https://github.com/sotanmochi/UnityCustomTextureRenderer.git?path=Assets/CustomTextureRenderer#v1.2.0",
18+
"jp.sotanmochi.unitycustomtexturerenderer.samples": "https://github.com/sotanmochi/UnityCustomTextureRenderer.git?path=Assets/CustomTextureRenderer.Samples#v1.2.0",
4319
...
4420
}
4521
}

README.md

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,9 @@
11
# UnityCustomTextureRenderer
22

3-
A graphics utility to update textures from native plugins.
4-
5-
## NonBlockingCustomTextureRenderer
6-
`NonBlockingCustomTextureRenderer` is a high performance graphics utility to update textures from native plugins.
7-
8-
<image src="./Docs/NonBlockingCustomTextureRenderer.gif">
9-
3+
A high performance graphics utility to update textures from native plugins.
104
The function for updating textures runs on another thread.
11-
Asynchronous GPU upload (partial data copy) reduces the processing time per frame in the main thread for large size textures.
12-
13-
`NonBlockingCustomTextureRenderer` is available on IL2CPP.
14-
15-
## CustomTextureRenderer
16-
`CustomTextureRenderer` is an example to update textures from native plugins
17-
using [CommandBuffer.IssuePluginCustomTextureUpdateV2](https://docs.unity3d.com/ScriptReference/Rendering.CommandBuffer.IssuePluginCustomTextureUpdateV2.html).
185

19-
<image src="./Docs/CustomTextureRenderer.gif">
20-
21-
The function for updating textures runs on Unity's Render Thread.
22-
23-
`CustomTextureRenderer` does not work on IL2CPP.
24-
```
25-
NotSupportedException:
26-
IL2CPP does not support marshaling delegates that point to instance methods to native code.
27-
The method we're attempting to marshal is: UnityCustomTextureRenderer.CustomTextureRenderer::TextureUpdateCallback
28-
UnityCustomTextureRenderer.CustomTextureRenderer.Update () (at <00000000000000000000000000000000>:0)
29-
UnityCustomTextureRenderer.Samples.Test.Update () (at <00000000000000000000000000000000>:0)
30-
```
6+
<image src="./Docs/NonBlockingCustomTextureRenderer.gif">
317

328
## Tested Environment
339
- Unity 2020.3.27f1
@@ -38,8 +14,8 @@ UnityCustomTextureRenderer.Samples.Test.Update () (at <0000000000000000000000000
3814
// manifest.json
3915
{
4016
"dependencies": {
41-
"jp.sotanmochi.unitycustomtexturerenderer": "https://github.com/sotanmochi/UnityCustomTextureRenderer.git?path=Assets/CustomTextureRenderer#v1.1.1",
42-
"jp.sotanmochi.unitycustomtexturerenderer.samples": "https://github.com/sotanmochi/UnityCustomTextureRenderer.git?path=Assets/CustomTextureRenderer.Samples#v1.1.1",
17+
"jp.sotanmochi.unitycustomtexturerenderer": "https://github.com/sotanmochi/UnityCustomTextureRenderer.git?path=Assets/CustomTextureRenderer#v1.2.0",
18+
"jp.sotanmochi.unitycustomtexturerenderer.samples": "https://github.com/sotanmochi/UnityCustomTextureRenderer.git?path=Assets/CustomTextureRenderer.Samples#v1.2.0",
4319
...
4420
}
4521
}

0 commit comments

Comments
 (0)