Skip to content

Commit

Permalink
[2023.2 Backport] Bug Fix - Render Graph - Buffer can be read through…
Browse files Browse the repository at this point in the history
… API (UUM-48874)

Backport of [PR 35699](https://github.cds.internal.unity3d.com/unity/unity/pull/35699)
Fixed UUM-48872
  • Loading branch information
axoloto authored and Evergreen committed Oct 13, 2023
1 parent cdea0b1 commit ffbc4ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ private ResourceHandle UseResource(in ResourceHandle handle, IBaseRenderGraphBui

public BufferHandle UseBuffer(in BufferHandle input, IBaseRenderGraphBuilder.AccessFlags flags)
{
if ((flags & IBaseRenderGraphBuilder.AccessFlags.GrabRead) != 0)
if ((flags & IBaseRenderGraphBuilder.AccessFlags.AllowGrab) != 0)
{
throw new ArgumentException("GrabRead is only valid on UseTexture");
throw new ArgumentException("AllowGrab is only valid on UseTexture");
}
return new BufferHandle(UseResource(input.handle, flags).index);
}
Expand Down

0 comments on commit ffbc4ff

Please sign in to comment.