**Description** Assigning the ResourceHeap to the SamplerHeap crashes DXC. ```hlsl // RUN: %dxc -T cs_6_6 %s | FileCheck %s [numthreads(1, 1, 1)] void main() { SamplerDescriptorHeap = ResourceDescriptorHeap; } ``` ``` $ dxc -T cs_6_6 repro.hlsl DirectXShaderCompiler/tools/clang/lib/CodeGen/CodeGenTypes.cpp:795: const CGRecordLayout &clang::CodeGen::CodeGenTypes::getCGRecordLayout(const RecordDecl *): Assertion `Layout && "Unable to find record layout information for type"' failed. ``` Similar bug, but different stacktrace: ```hlsl [numthreads(1, 1, 1)] void main() { ResourceDescriptorHeap = ResourceDescriptorHeap[0]; } ``` ```hlsl [numthreads(1, 1, 1)] void main() { ResourceDescriptorHeap[0]; } ``` ```hlsl [numthreads(1, 1, 1)] void main() { ResourceDescriptorHeap[0][1]; } ``` **Environment** - DXC version: HEAD (128e6ce2be8f09539c97cf28d6066d9a6b32b15c) - Host Operating System: Linux
Activity