Skip to content

Commit ada292d

Browse files
committed
Add command buffer name
1 parent a428869 commit ada292d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Assets/CustomTextureRenderer/Runtime/CustomTextureRenderer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ public sealed class CustomTextureRenderer : IDisposable
3030

3131
delegate void UnityRenderingEventAndData(int eventID, IntPtr data);
3232
readonly UnityRenderingEventAndData _callback;
33-
readonly CommandBuffer _commandBuffer = new CommandBuffer();
33+
readonly CommandBuffer _commandBuffer = new CommandBuffer()
34+
{
35+
name = "CustomTextureRenderer.IssuePluginCustomTextureUpdateV2"
36+
};
3437

3538
#if DEVELOPMENT_BUILD || UNITY_EDITOR
3639
CustomSampler _updateRawTextureDataFunctionSampler;

Assets/CustomTextureRenderer/Runtime/NonBlockingCustomTextureRenderer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ public sealed class NonBlockingCustomTextureRenderer : IDisposable
4141

4242
delegate void UnityRenderingEventAndData(int eventID, IntPtr data);
4343
readonly UnityRenderingEventAndData _callback;
44-
readonly CommandBuffer _commandBuffer = new CommandBuffer();
44+
readonly CommandBuffer _commandBuffer = new CommandBuffer()
45+
{
46+
name = "CustomTextureRenderer.IssuePluginCustomTextureUpdateV2"
47+
};
4548

4649
#if DEVELOPMENT_BUILD || UNITY_EDITOR
4750
CustomSampler _updateRawTextureDataFunctionSampler;

0 commit comments

Comments
 (0)