Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix colorAttachment cleaning in the GpuInterop Vulkan demo #13923

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

VladimirDrobyshev
Copy link
Contributor

What does the pull request do?

Fixes an incorrect surface cleaning in GpuInterop demo.

What is the current behavior?

There is still red background if change the ClearColorValue for the CmdBeginRenderPass method to white, green or black.

What is the updated/expected behavior with this PR?

Now, an any color can be selected for the background.

How was the solution implemented (if it's not obvious)?

The source of the problem is layout of the Silk.NET.Vulkan.ClearValue structure. Both Color and DepthStencil fields has similar offset equals to 0. And the valid usage of ClearValue structure is define only the Color or the DepthStencil fields, not both an time.

Checklist

Not needed

Breaking changes

None

Obsoletions / Deprecations

None

Fixed issues

None

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0042843-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Dec 12, 2023
Merged via the queue into AvaloniaUI:master with commit d44bd39 Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants