[Vulkan] WriteDiscard support
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
When I try to use config "win-vulkan" in project file compile Starbreach successful,but run with error: System.InvalidOperationException: Can't use WriteDiscard on Graphics API that doesn't support renaming
Xenko.Graphics.CommandList.MapSubresource(GraphicsResource resource, Int32 subResourceIndex, MapMode mapMode, Boolean doNotWait, Int32 offsetInBytes, Int32 lengthInBytes)
Xenko.Graphics.FastTextRenderer.End(GraphicsContext graphicsContext)
Xenko.Profiling.GameProfilingSystem.Draw(GameTime gameTime)
Xenko.Games.GameSystemCollection.Draw(GameTime gameTime)
Xenko.Games.GameBase.Draw(GameTime gameTime)
Starbreach.StarbreachGame.Draw(GameTime gameTime)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Xenko.Graphics.CommandList.MapSubresource and trace the WriteDiscard path used by Xenko.Graphics.FastTextRenderer.End. Reproduce the win-vulkan run with the Starbreach project, then verify that GameProfilingSystem.Draw completes without the WriteDiscard exception and profiling text still renders.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100