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

Update mgfxc docs with the correct code sample #98

Merged
merged 2 commits into from
Feb 10, 2025

Conversation

SimonDarksideJ
Copy link
Collaborator

Summary

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).

Changes

@SimonDarksideJ SimonDarksideJ merged commit 50c8598 into main Feb 10, 2025
2 checks passed
@SimonDarksideJ SimonDarksideJ deleted the fix/patch_mgfxc_docs branch February 10, 2025 14:41
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.

Wrong code sample on MonoGame Effects Compiler page
2 participants