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

Wrong code sample on MonoGame Effects Compiler page #84

Open
titanix opened this issue Nov 18, 2024 · 0 comments
Open

Wrong code sample on MonoGame Effects Compiler page #84

titanix opened this issue Nov 18, 2024 · 0 comments

Comments

@titanix
Copy link

titanix commented Nov 18, 2024

At the end of page https://docs.monogame.net/articles/getting_started/tools/mgfxc.html there is the following code sample:

byte[] bytecode = File.ReadAllBytes("mycompiled.mgfx"); var effect = new Effect(bytecode);

It's is not working has the Effect class has no such constructor. The closest available constructor is Effect(GraphicsDevice graphicsDevice, byte[] effectCode).

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

No branches or pull requests

1 participant