Skip to content

Wrong code sample on MonoGame Effects Compiler page #84

Closed
@titanix

Description

@titanix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions