How to reproduce:
1. Open the attached “IN-137113.zip” project
2. Open the “Start” scene
3. Select the “Dispatch” GameObject
4. Enable “Use UAV From Material” in the “Repro Dispatch” script component
5. Enter Play Mode
6. Observe the crash
Reproducible in: 6000.3.0a1, 6000.3.11f1, 6000.4.0f1, 6000.5.0a9, 6000.6.0a1
Not reproducible in: 6000.0.70f1, 6000.2.0b2
Note: Does not reproduce with DirectX 11
First few lines of stacktrace:
0x00007FFE9552A858 (Unity) WriteHitGroupRecordJob
0x00007FFE9552A9BB (Unity) WriteHitGroupRecordsJobKernel
0x00007FFE95ACA7A5 (Unity) ujob_execute_job
0x00007FFE95ACC61E (Unity) ujob_wait_for
0x00007FFE95AC5807 (Unity) CompleteFenceInternal
0x00007FFE9552B11B (Unity) D3D12RayTracingState::WriteHitGroupShaderRecords