2024-03-06 06:08:10 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
|
2022-12-04 11:03:45 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
|
2020-12-25 08:02:38 +00:00
|
|
|
#pragma once
|
2024-03-06 06:08:10 +00:00
|
|
|
|
2020-12-25 08:02:38 +00:00
|
|
|
#include "types.h"
|
2024-03-06 06:08:10 +00:00
|
|
|
|
2024-06-02 14:45:36 +00:00
|
|
|
#include "util/image.h"
|
2020-12-25 08:02:38 +00:00
|
|
|
|
2024-06-02 14:45:36 +00:00
|
|
|
#include <string>
|
2020-12-25 08:02:38 +00:00
|
|
|
|
2024-06-02 14:45:36 +00:00
|
|
|
namespace TextureReplacements {
|
2020-12-25 08:02:38 +00:00
|
|
|
|
2024-06-02 14:45:36 +00:00
|
|
|
using ReplacementImage = RGBA8Image;
|
2020-12-25 08:02:38 +00:00
|
|
|
|
2024-06-02 14:45:36 +00:00
|
|
|
enum class ReplacmentType
|
2020-12-25 08:02:38 +00:00
|
|
|
{
|
2024-06-02 14:45:36 +00:00
|
|
|
VRAMWrite,
|
2020-12-25 08:02:38 +00:00
|
|
|
};
|
|
|
|
|
2024-06-02 14:45:36 +00:00
|
|
|
void SetGameID(std::string game_id);
|
2020-12-25 08:02:38 +00:00
|
|
|
|
2024-06-02 14:45:36 +00:00
|
|
|
void Reload();
|
2020-12-25 08:02:38 +00:00
|
|
|
|
2024-06-02 14:45:36 +00:00
|
|
|
const ReplacementImage* GetVRAMReplacement(u32 width, u32 height, const void* pixels);
|
|
|
|
void DumpVRAMWrite(u32 width, u32 height, const void* pixels);
|
2020-12-25 08:02:38 +00:00
|
|
|
|
2024-06-02 14:45:36 +00:00
|
|
|
void Shutdown();
|
2020-12-25 08:02:38 +00:00
|
|
|
|
2024-06-02 14:45:36 +00:00
|
|
|
} // namespace TextureReplacements
|