mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-25 19:44:57 +00:00
* The hack was to skip the first draw as the display buffer had not been created yet and the texture cache couldn't create one itself. With this patch it now can, using the color buffer parameters from registers
18 lines
539 B
C++
18 lines
539 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "shader_recompiler/ir/basic_block.h"
|
|
#include "shader_recompiler/ir/program.h"
|
|
|
|
namespace Shader::Optimization {
|
|
|
|
void SsaRewritePass(IR::BlockList& program);
|
|
void IdentityRemovalPass(IR::BlockList& program);
|
|
void DeadCodeEliminationPass(IR::BlockList& program);
|
|
void ConstantPropagationPass(IR::BlockList& program);
|
|
void ResourceTrackingPass(IR::Program& program);
|
|
|
|
} // namespace Shader::Optimization
|