[Rendering] Mult blending causes crash
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: GitHub
Version: Latest as of the time of writing
Platform(s): Windows DirectX 11
Describe the bug
Setting a pass's BlendState to an illegal state based on the transparency toggle of that pass crashes the application.
To Reproduce
Steps to reproduce the behavior:
- Get a reference to material.
- Set transparency through
TargetMaterial.Passes[ 0 ].HasTransparency = true; - Run this
TargetMaterial.Passes[ 0 ].BlendState = new BlendStateDescription( Blend.DestinationColor, Blend.Zero );
Expected behavior
Blends multiplicatively or throws a clearer exception.
Log and callstacks
Stack
Additional context
None.
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 by reproducing the crash with the BlendState and HasTransparency settings in the issue, then inspect the attached MultCrash.txt stack trace and the rendering blend-state handling it identifies. Done means the illegal combination no longer crashes silently: it either produces multiplicative blending or raises a clearer exception, as specified by the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- computer-graphics, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100