Ok, some additional bizarre context. It’s mostly working now, but I’ll continue to get error spam in the logs anytime I select specific objects in the scene view.
I actually changed nothing about the code; I just suddenly realized it was working and didn’t know why. After I selected one of the objects in question in the viewport, suddenly the error spam started again. After unselecting, the error spam stopped. Maybe a bug in Render Graph?
These are the warnings/errors that are spammed in the log whenever certain (seemingly random) objects are selected.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
RenderPassContext: Found a rogue context, did you call EndRenderPass?
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Assertion failed
UnityEngine.Rendering.Blitter:BlitTexture (UnityEngine.Rendering.RasterCommandBuffer,UnityEngine.Rendering.RTHandle,UnityEngine.Vector4,single,bool)
IVF.PostTransparencyPassFeature/PostTransparencyGrabPass:Execute (IVF.PostTransparencyPassFeature/PostTransparencyGrabPass/PassData,UnityEngine.Rendering.RenderGraphModule.RasterGraphContext) (at Assets/Script/Game/Rendering/PostTransparencyPassFeature.cs:44)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Render Graph Execution error
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
ArgumentNullException: Value cannot be null.
Parameter name: value
UnityEngine.Bindings.ThrowHelper.ThrowArgumentNullException (System.Object obj, System.String parameterName) (at <5a87366a6dc74b3aa0e0421cf80e3ae5>:0)
UnityEngine.MaterialPropertyBlock.SetTextureImpl (System.Int32 name, UnityEngine.Texture value) (at <5a87366a6dc74b3aa0e0421cf80e3ae5>:0)
UnityEngine.MaterialPropertyBlock.SetTexture (System.Int32 nameID, UnityEngine.Texture value) (at <5a87366a6dc74b3aa0e0421cf80e3ae5>:0)
UnityEngine.Rendering.Blitter.BlitTexture (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.RTHandle source, UnityEngine.Vector4 scaleBias, UnityEngine.Material material, System.Int32 pass) (at ./Library/PackageCache/com.unity.render-pipelines.core/Runtime/Utilities/Blitter.cs:437)
UnityEngine.Rendering.Blitter.BlitTexture (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.RTHandle source, UnityEngine.Vector4 scaleBias, System.Single mipLevel, System.Boolean bilinear) (at ./Library/PackageCache/com.unity.render-pipelines.core/Runtime/Utilities/Blitter.cs:350)
UnityEngine.Rendering.Blitter.BlitTexture (UnityEngine.Rendering.RasterCommandBuffer cmd, UnityEngine.Rendering.RTHandle source, UnityEngine.Vector4 scaleBias, System.Single mipLevel, System.Boolean bilinear) (at ./Library/PackageCache/com.unity.render-pipelines.core/Runtime/Utilities/Blitter.cs:336)
IVF.PostTransparencyPassFeature+PostTransparencyGrabPass.Execute (IVF.PostTransparencyPassFeature+PostTransparencyGrabPass+PassData passData, UnityEngine.Rendering.RenderGraphModule.RasterGraphContext rasterContext) (at Assets/Script/Game/Rendering/PostTransparencyPassFeature.cs:44)
UnityEngine.Rendering.RenderGraphModule.RasterRenderGraphPass`1[PassData].Execute (UnityEngine.Rendering.RenderGraphModule.InternalRenderGraphContext renderGraphContext) (at ./Library/PackageCache/com.unity.render-pipelines.core/Runtime/RenderGraph/RenderGraphPass.cs:611)
UnityEngine.Rendering.RenderGraphModule.NativeRenderPassCompiler.NativePassCompiler.ExecuteGraphNode (UnityEngine.Rendering.RenderGraphModule.InternalRenderGraphContext& rgContext, UnityEngine.Rendering.RenderGraphModule.RenderGraphResourceRegistry resources, UnityEngine.Rendering.RenderGraphModule.RenderGraphPass pass) (at ./Library/PackageCache/com.unity.render-pipelines.core/Runtime/RenderGraph/Compiler/NativePassCompiler.cs:1309)
UnityEngine.Rendering.RenderGraphModule.NativeRenderPassCompiler.NativePassCompiler.ExecuteGraph (UnityEngine.Rendering.RenderGraphModule.InternalRenderGraphContext rgContext, UnityEngine.Rendering.RenderGraphModule.RenderGraphResourceRegistry resources, System.Collections.Generic.List`1[UnityEngine.Rendering.RenderGraphModule.RenderGraphPass]& passes) (at ./Library/PackageCache/com.unity.render-pipelines.core/Runtime/RenderGraph/Compiler/NativePassCompiler.cs:1411)
UnityEngine.Rendering.RenderGraphModule.RenderGraph.ExecuteNativeRenderGraph () (at ./Library/PackageCache/com.unity.render-pipelines.core/Runtime/RenderGraph/RenderGraph.Compiler.cs:42)
UnityEngine.Rendering.RenderGraphModule.RenderGraph.Execute () (at ./Library/PackageCache/com.unity.render-pipelines.core/Runtime/RenderGraph/RenderGraph.cs:1233)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)