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

Implement full support for static fields #703

Merged
merged 11 commits into from
Dec 6, 2023
Merged

Conversation

Sergio0694
Copy link
Owner

Closes #298

Description

This PR implements full support for static fields in shaders. In particular:

  • Using static fields from external types is now working
  • Using static fields from the shader type, from a different type, is also now working

The supported types are the same as before. Both readonly and non readonly fields are supported.

@Sergio0694 Sergio0694 added bug fix ✅ A fix for a reported/discovered bug feature 🎉 A brand new feature for ComputeSharp labels Dec 6, 2023
@Sergio0694 Sergio0694 force-pushed the dev/external-static-fields branch from 8fda94b to 9591e7e Compare December 6, 2023 11:39
@Sergio0694 Sergio0694 force-pushed the dev/external-static-fields branch from 9591e7e to b832874 Compare December 6, 2023 20:12
@Sergio0694 Sergio0694 merged commit f56458d into main Dec 6, 2023
24 checks passed
@Sergio0694 Sergio0694 deleted the dev/external-static-fields branch December 6, 2023 20:58
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 feature 🎉 A brand new feature for ComputeSharp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Method outside of shader can't access its own static readonly field
1 participant