Search Issue Tracker

Fixed

Fixed in 2023.3.0a13, 7000.0.0a1

Votes

0

Found in

2022.2.0b10

2023.3.0a7

7000.0.0a1

Issue ID

UUM-20257

Regression

No

Ray Trace Shader stops working when using multiple "RayTracingShader.SetAccelerationStructure" methods

--

-

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

  1. Resolution Note (fix version 7000.0.0a1):

    Fix verified in:

    2024.1.0a1.git.main.12575891
    Revision: main bfe4930b147f
    Built: Wed, 13 Dec 2023 05:33:39 GMT

    Verified with the original case in RayTraceBug.zip. I had to resolve compilation errors because of deprecated AddInstance signature.

  2. Resolution Note (fix version 2023.3.0a13):

    Fix verified in:

    2023.3.0a13.1974
    Revision: trunk 5d06f0fc0243
    Built: Thu, 26 Oct 2023 10:38:27 GMT

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.