GPU: Implement fill VRAM command

This commit is contained in:
Connor McLaughlin
2019-09-14 16:43:39 +10:00
parent 46870c6a7a
commit 851ef67814
9 changed files with 82 additions and 10 deletions

View File

@ -245,7 +245,7 @@ void main()
return ss.str();
}
std::string GPU_HW::GenerateTexturePageProgram(TextureColorMode mode)
std::string GPU_HW::GenerateTexturePageFragmentShader(TextureColorMode mode)
{
const bool is_palette = (mode == GPU::TextureColorMode::Palette4Bit || mode == GPU::TextureColorMode::Palette8Bit);
@ -304,6 +304,24 @@ void main()
return ss.str();
}
std::string GPU_HW::GenerateFillFragmentShader()
{
std::stringstream ss;
GenerateShaderHeader(ss);
ss << R"(
uniform vec4 fill_color;
out vec4 o_col0;
void main()
{
o_col0 = fill_color;
}
)";
return ss.str();
}
void GPU_HW::UpdateTexturePageTexture() {}
void GPU_HW::DispatchRenderCommand(RenderCommand rc, u32 num_vertices)