2019-09-06 11:22:47 +02:00
|
|
|
// Copyright 2019 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Common/BitSet.h"
|
2021-12-10 03:22:16 +01:00
|
|
|
#include "Common/ChunkFile.h"
|
2019-09-06 11:22:47 +02:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
|
|
|
#include "VideoCommon/BPMemory.h"
|
|
|
|
|
|
|
|
namespace TMEM
|
|
|
|
{
|
|
|
|
void InvalidateAll();
|
|
|
|
void Invalidate(u32 param);
|
|
|
|
void ConfigurationChanged(TexUnitAddress bp_addr, u32 config);
|
|
|
|
void Bind(u32 unit, int num_blocks_width, int num_blocks_height, bool is_mipmapped, bool is_32_bit);
|
|
|
|
void FinalizeBinds(BitSet32 used_textures);
|
|
|
|
bool IsCached(u32 unit);
|
|
|
|
bool IsValid(u32 unit);
|
2021-10-10 04:49:59 +02:00
|
|
|
|
|
|
|
void Init();
|
|
|
|
void DoState(PointerWrap& p);
|
|
|
|
|
2019-09-06 11:22:47 +02:00
|
|
|
} // namespace TMEM
|