- Home /
Graphics.DrawTexture() not displaying in HDRP
I've been trying to use Graphics.DrawTexture, calling through the RenderPipelineManager.endFrameRendering event, which theoretically should render last.
Nothing is being displayed, however. The draw call shows up in the frame debugger, but not visually. Someone mentioned that HDRP may render to a render texture before rendering to the screen, and the frame debugger seems to support this.
Unfortunately I have no clue how to use this information to make the DrawTexture call show on screen.
Just to cover all bases, here's the relevant code I've been using:
protected override void OnEnable()
{
UnityEngine.Rendering.RenderPipelineManager.endFrameRendering += PostRender;
}
protected override void OnDisable()
{
UnityEngine.Rendering.RenderPipelineManager.endFrameRendering -= PostRender;
}
private void PostRender(UnityEngine.Rendering.ScriptableRenderContext _, Camera[] __)
{
Graphics.DrawTexture(new Rect(0, 0, 5000, 5000), Texture2D.redTexture);
}
Your answer
Follow this Question
Related Questions
How to call Graphics.DrawTexture() in Update 1 Answer
Creating a Masking Object with Variable Pass Through 0 Answers
Force a custom surface shader to not compile a deferred pass? 0 Answers
[Unity SRP] How do I clear 3d RW RenderTexture? 1 Answer
Problems with Graphics.DrawMesh, where to call it and how to get material property blocks to work. 3 Answers