Duckstation/src/core/texture_replacements.h

31 lines
585 B
C
Raw Normal View History

2024-03-06 06:08:10 +00:00
// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
#pragma once
2024-03-06 06:08:10 +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"
2024-06-02 14:45:36 +00:00
#include <string>
2024-06-02 14:45:36 +00:00
namespace TextureReplacements {
2024-06-02 14:45:36 +00:00
using ReplacementImage = RGBA8Image;
2024-06-02 14:45:36 +00:00
enum class ReplacmentType
{
2024-06-02 14:45:36 +00:00
VRAMWrite,
};
2024-06-02 14:45:36 +00:00
void SetGameID(std::string game_id);
2024-06-02 14:45:36 +00:00
void Reload();
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);
2024-06-02 14:45:36 +00:00
void Shutdown();
2024-06-02 14:45:36 +00:00
} // namespace TextureReplacements