| 1 | // Copyright 2025 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <xxh3.h> |
| 7 | |
| 8 | #include "VideoCommon/GXPipelineTypes.h" |
| 9 | |
| 10 | namespace VideoCommon |
| 11 | { |
| 12 | GXPipelineUid ApplyDriverBugs(const GXPipelineUid& in); |
| 13 | |
| 14 | // Returns a hash of the pipeline, hashing the |
| 15 | // vertex declarations instead of the native vertex format |
| 16 | // object |
| 17 | std::size_t PipelineToHash(const GXPipelineUid& in); |
| 18 | |
| 19 | // Updates an existing hash with the hash of the pipeline |
| 20 | void UpdateHashWithPipeline(const GXPipelineUid& in, XXH3_state_t* hash_state); |
| 21 | |
| 22 | } // namespace VideoCommon |