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

VideoCommon/TextureConversionShader: Convert over to using ShaderCode #8576

Merged
merged 2 commits into from Jan 24, 2020

Conversation

lioncash
Copy link
Member

Previously the shader generation used a global text buffer to contain the generated text and then returned a pointer into the buffer. This was what a few of the other shader generators used to do until ShaderCode was introduced.

We can convert this over to use ShaderCode to make it consistent with the other generators and then convert it over to making use of the fmt-capable WriteFmt. I've done this in two parts to make it easier to review the initial conversion over to ShaderCode and the subsequent conversion over to making use of fmt.

Migrates the shader generator off the use of a global array, eliminating
the use of some global state. This also allows us to move the shader
generation over to using fmt in a subsequent change.
Now that we've converted the shader generation over to ShaderCode, we
can now make use of the fmt-capable WriteFmt function.
Copy link
Member

@jordan-woyak jordan-woyak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Untested.

@stenzek stenzek merged commit 42c03c4 into dolphin-emu:master Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants