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

Add support for using enum types in shaders #248

Open
rickbrew opened this issue Apr 27, 2022 · 1 comment
Open

Add support for using enum types in shaders #248

rickbrew opened this issue Apr 27, 2022 · 1 comment
Labels
proposal 💡 A proposal for a new feature untriaged 🧰 A new issue that needs initial triage

Comments

@rickbrew
Copy link
Collaborator

As we discussed on Discord :) I assume these would just map to int or long.

@rickbrew rickbrew added proposal 💡 A proposal for a new feature untriaged 🧰 A new issue that needs initial triage labels Apr 27, 2022
@Sergio0694
Copy link
Owner

In theory HLSL does support enums, so I'm thinking I could also just map the type directly and use it just like in C#, except that you'd access it as Foo::Bar in HLSL and not as Foo.Bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal 💡 A proposal for a new feature untriaged 🧰 A new issue that needs initial triage
Projects
None yet
Development

No branches or pull requests

2 participants