duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

texture_replacements.h (585B)


      1 // SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
      2 // SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
      3 
      4 #pragma once
      5 
      6 #include "types.h"
      7 
      8 #include "util/image.h"
      9 
     10 #include <string>
     11 
     12 namespace TextureReplacements {
     13 
     14 using ReplacementImage = RGBA8Image;
     15 
     16 enum class ReplacmentType
     17 {
     18   VRAMWrite,
     19 };
     20 
     21 void SetGameID(std::string game_id);
     22 
     23 void Reload();
     24 
     25 const ReplacementImage* GetVRAMReplacement(u32 width, u32 height, const void* pixels);
     26 void DumpVRAMWrite(u32 width, u32 height, const void* pixels);
     27 
     28 void Shutdown();
     29 
     30 } // namespace TextureReplacements