Merge pull request #8858 from vonchenplus/mipmap

video_core: Generate mipmap texture by drawing
This commit is contained in:
bunnei 2022-11-03 22:21:58 -07:00 committed by GitHub
commit 38e4382f53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 259 additions and 8 deletions

View file

@ -450,6 +450,9 @@ std::string EmitGLASM(const Profile& profile, const RuntimeInfo& runtime_info, I
if (program.info.uses_rescaling_uniform) {
header += "PARAM scaling[1]={program.local[0..0]};";
}
if (program.info.uses_render_area) {
header += "PARAM render_area[1]={program.local[1..1]};";
}
header += "TEMP ";
for (size_t index = 0; index < ctx.reg_alloc.NumUsedRegisters(); ++index) {
header += fmt::format("R{},", index);