stride3d / stride3d/stride

[Vulkan] WriteDiscard support

Open
#630 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Graphics bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.