[D3D12] Change most subsystem pointers to references

This commit is contained in:
Triang3l
2020-08-30 22:07:35 +03:00
parent c5dd7403f0
commit 1e9ee8f43b
23 changed files with 532 additions and 538 deletions

View File

@@ -167,9 +167,9 @@ class TextureCache {
}
};
TextureCache(D3D12CommandProcessor* command_processor,
RegisterFile* register_file, bool bindless_resources_used,
SharedMemory* shared_memory);
TextureCache(D3D12CommandProcessor& command_processor,
const RegisterFile& register_file, bool bindless_resources_used,
SharedMemory& shared_memory);
~TextureCache();
bool Initialize(bool edram_rov_used);
@@ -543,10 +543,10 @@ class TextureCache {
static const char* const dimension_names_[4];
D3D12CommandProcessor* command_processor_;
RegisterFile* register_file_;
D3D12CommandProcessor& command_processor_;
const RegisterFile& register_file_;
bool bindless_resources_used_;
SharedMemory* shared_memory_;
SharedMemory& shared_memory_;
static const LoadModeInfo load_mode_info_[];
ID3D12RootSignature* load_root_signature_ = nullptr;