ConfettiFX / The-Forge

The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
Apache License 2.0
4.75k stars 497 forks source link

Error with ID3DUserDefinedAnnotation in DirectX11 renderer #263

Closed Hochheilige closed 1 year ago

Hochheilige commented 1 year ago

When I'd like to use cmdBeginDebugMarker with DirectX11 renderer the error occured. I found out that this error was just small bug in DirectX11 renderer functions where instead of pCmd->pRenderer->mD3D11.pUserDefinedAnnotation->EndEvent(); there was a pCmd->pRenderer->pUserDefinedAnnotation->EndEvent(); call.

So the error was because pUserDefinedAnnotation is not a part of Renderer itself but the part of pRenderer->mD3D11 struct