# FD3D12DescriptorCache::SetRootConstantBuffers crash when applying Decal material to Decal Actor 

**URL:** <https://forums.unrealengine.com/t/fd3d12descriptorcache-setrootconstantbuffers-crash-when-applying-decal-material-to-decal-actor/2735824>\
**Category:** Asset Creation\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [June 15, 2026, 10:17am UTC](https://forums.unrealengine.com/t/fd3d12descriptorcache-setrootconstantbuffers-crash-when-applying-decal-material-to-decal-actor/2735824 "2026-06-15T10:17:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 15, 2026, 10:17am UTC](https://forums.unrealengine.com/t/fd3d12descriptorcache-setrootconstantbuffers-crash-when-applying-decal-material-to-decal-actor/2735824/1 "2026-06-15T10:17:17Z")

</div>

1. Create a new Blank game project
2. Add a Decal Actor to the level
3. Create a new Material
4. Set the Material Domain to “Deferred Decal” and Blend Mode to “TranslucentGrayTransmittance”
5. Attach a Distance Cull Fade node to Opacity.
6. Right click Roughness and Promote to Parameter.
7. Save the material and set it on the Decal Actor. Crash occurs.  
[UECC-Windows-FA47493F4957F381F1BF06A69A3847DA\_0000.zip](https://forums.unrealengine.com/uploads/short-url/4ni9HkejJGoWMMi5t7eutOK6ybk.zip)(594 KB)

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 15, 2026, 10:17am UTC](https://forums.unrealengine.com/t/fd3d12descriptorcache-setrootconstantbuffers-crash-when-applying-decal-material-to-decal-actor/2735824/2 "2026-06-15T10:17:21Z")

</div>

**Steps to Reproduce**  
We have discovered a crash when applying decal materials:

Fatal error: [File:D:\Projects\UEBA\+dev\_UGS\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12DescriptorCache.cpp] [Line: 730]

Missing uniform buffer at slot 2, stage SF\_Pixel. Please check the high level drawing code. Hashes: Vertex: 0412344381A54356369561A7263987C92AFDE647, Pixel: D5D063E9FD40319BC8B11C12936A2BA8DE6CA44A, Pipeline: 63E75D898B7658DB70F261F2CB6E568C0F398DE0.

The crash is easily repro-able in unmodified UE 5.6.1 and 5.8.0 Preview. Repro steps for 5.8 are given below, and I have attached the crash files. We’d be interested to know if there is a fix.

---

<div class="post-metadata">

**Author:** ![Petrockets](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/petrockets/32/1142518_2.png) [@Petrockets](https://forums.unrealengine.com/u/Petrockets)\
**Post date:** [June 15, 2026, 10:07pm UTC](https://forums.unrealengine.com/t/fd3d12descriptorcache-setrootconstantbuffers-crash-when-applying-decal-material-to-decal-actor/2735824/3 "2026-06-15T22:07:24Z")

</div>

Hello!

Thanks for letting us know about this crash. I’ve verified the problem still exists in latest and created the following issue for tracking: [https://issues.unrealengine.com/issue/UE\-384624\](https://issues.unrealengine.com/issue/UE%5C-384624%5C). It should be visible publicly soon.

To fix the issue, you can:

1. Remove the **Distance Cull Fade** node from the Material as it shouldn’t have an affect for Deferred Decals because they have their own fade logic on the Decal Actor.
2. Modify GetDistanceCullFade() in MaterialTemplate.ush:1975 to ignore that buffer when IS\_DECAL
3. Mirror the mesh decal path in FDeferredDecalPS::SetParameters and bind the missing buffer to one that is always 1

```auto
auto& PrimitivePS = GetUniformBufferParameter<FPrimitiveUniformShaderParameters>();
SetUniformBufferParameter(BatchedParameters, PrimitivePS, GIdentityPrimitiveUniformBuffer);
 
// Decal materials can reference the DistanceCullFade node (GetDistanceCullFade -> PrimitiveFade UB),
// but the decal path doesn't run through FMeshMaterialShader which normally binds it. Bind the default
// fully-faded-in buffer so these materials don't crash (decals aren't per-primitive distance culled).
auto& FadePS = GetUniformBufferParameter<FDistanceCullFadeUniformShaderParameters>();
if (FadePS.IsBound())
{
    SetUniformBufferParameter(BatchedParameters, FadePS, GDistanceCullFadedInUniformBuffer.GetUniformBufferRHI());
}

```

We’ll probably go with #2 or #3.

What were you using the Decal Fade Node for in your Decal Materials?

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 16, 2026, 11:42am UTC](https://forums.unrealengine.com/t/fd3d12descriptorcache-setrootconstantbuffers-crash-when-applying-decal-material-to-decal-actor/2735824/4 "2026-06-16T11:42:26Z")

</div>

Thanks for the suggested fixes! We have the Distance Cull Fade as part of a material function to do fading for ordinary mesh materials and I’m not sure we actually need it for decals. Also, once this is fixed, it would be nice to have a warning to say this node isn’t compatible with Decal materials when someone tries to use it.
