From 24b9e3f41475df216cb8cc9347c5ea42fc927cbc Mon Sep 17 00:00:00 2001 From: victor Date: Thu, 16 Apr 2020 10:20:46 -0700 Subject: [PATCH] Bind missing buffer Bind buffer to make sure that something is bound --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 2 +- .../Runtime/RenderPipeline/HDRenderPipeline.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 70bfa38a535..064234b80c1 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -455,7 +455,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed the HDRP asset migration code not being called after an upgrade of the package - Fixed draw renderers custom pass out of bound exception - Fixed the PBR shader rendering in deferred - +- Fixed warning about missing bound decal buffer ### Changed - Color buffer pyramid is not allocated anymore if neither refraction nor distortion are enabled - Rename Emission Radius to Radius in UI in Point, Spot diff --git a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs index 618cc3647a9..9f81c931b42 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs @@ -3066,6 +3066,10 @@ void RenderDBuffer(HDCamera hdCamera, CommandBuffer cmd, ScriptableRenderContext { // We still bind black textures to make sure that something is bound (can be a problem on some platforms) m_DbufferManager.BindBlackTextures(cmd); + + // Bind buffer to make sure that something is bound . + cmd.SetGlobalBuffer(HDShaderIDs._DecalPropertyMaskBufferSRV, m_DbufferManager.propertyMaskBuffer); + return; }