Skip to content

Commit c43e796

Browse files
Bind missing buffer (#159)
Bind buffer to make sure that something is bound Co-authored-by: sebastienlagarde <[email protected]>
1 parent 14aae88 commit c43e796

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

com.unity.render-pipelines.high-definition/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
538538
- Fixed white flash happening with auto-exposure in some cases (case 1223774)
539539
- Fixed NaN which can appear with real time reflection and inf value
540540
- Fixed an issue that was collapsing the volume components in the HDRP default settings
541+
- Fixed warning about missing bound decal buffer
541542

542543
### Changed
543544
- Color buffer pyramid is not allocated anymore if neither refraction nor distortion are enabled

com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3167,6 +3167,10 @@ void RenderDBuffer(HDCamera hdCamera, CommandBuffer cmd, ScriptableRenderContext
31673167
{
31683168
// We still bind black textures to make sure that something is bound (can be a problem on some platforms)
31693169
m_DbufferManager.BindBlackTextures(cmd);
3170+
3171+
// Bind buffer to make sure that something is bound .
3172+
cmd.SetGlobalBuffer(HDShaderIDs._DecalPropertyMaskBufferSRV, m_DbufferManager.propertyMaskBuffer);
3173+
31703174
return;
31713175
}
31723176

0 commit comments

Comments
 (0)