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 PixelShaderEffect<T>.ConstantBuffer accessors crashing for empty types #466

Merged
merged 4 commits into from
Jan 12, 2023

Conversation

Sergio0694
Copy link
Owner

Description

This PR fixes a crash in PixelShaderEffect.ConstantBuffer if an empty type was being read or assigned.
The changes simply handle shader types having no size, and just do nothing (leaving the constant buffer empty).

@Sergio0694 Sergio0694 added bug fix ✅ A fix for a reported/discovered bug refactoring 🧹 Code style and architecture improvements labels Jan 10, 2023
@Sergio0694 Sergio0694 merged commit 999d3e2 into main Jan 12, 2023
@Sergio0694 Sergio0694 deleted the dev/fix-device-change branch January 12, 2023 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix ✅ A fix for a reported/discovered bug refactoring 🧹 Code style and architecture improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant