Skip to content

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