How to reproduce:
1. Open the attached project “RayTraceBug.zip“
2. Open Scene “SampleScene“ (Assets/Scenes)
3. Enter Play Mode
Expected result: Red stains appear on the magenta GameObjects
Actual result: Red stains don’t appear on the magenta GameObjects
Reproducible with: 2022.2.0b10
Can’t test with: 2020.3.39f1, 2021.3.11f1, 2022.1.18f1 (Errors in the Console), 2023.1.0a15 (Crashes when entering Play Mode and in builds)
Reproduced on: Windows 10 (19044.2006)
Can’t test with: macOS (12.5 Intel) (“The RayTracing API is not supported by this GPU or by the current graphics API.“)
Stacktrace for Unity 2023.1.0a15:
0x00007FFEB67358BA (Unity) GfxDeviceD3D12::BuildBottomLevelAccelerationStructures
0x00007FFEB6735D7A (Unity) GfxDeviceD3D12::BuildRayTracingAccelerationStructure
0x00007FFEB7CFCA49 (Unity) GfxDeviceWorker::RunCommand
0x00007FFEB7D01A8B (Unity) GfxDeviceWorker::RunExt
0x00007FFEB7D01BA8 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
0x00007FFEB63A3B5D (Unity) Thread::RunThreadWrapper
0x00007FFF4D6E7034 (KERNEL32) BaseThreadInitThunk
0x00007FFF4EF626A1 (ntdll) RtlUserThreadStart
Note: Issue reproducible in Builds