mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
AbstractPipeline: Support returning "cache data"
"Cache data" can be used to assist a driver with creating pipelines by using previously-compiled shader ISA.
This commit is contained in:
parent
2863183532
commit
61a656570e
29 changed files with 68 additions and 51 deletions
|
@ -75,4 +75,10 @@ class AbstractPipeline
|
|||
public:
|
||||
AbstractPipeline() = default;
|
||||
virtual ~AbstractPipeline() = default;
|
||||
|
||||
// "Cache data" can be used to assist a driver with creating pipelines by using previously
|
||||
// compiled shader ISA. The abstract shaders and creation struct are still required to create
|
||||
// pipeline objects, the cache is optionally used by the driver to speed up compilation.
|
||||
using CacheData = std::vector<u8>;
|
||||
virtual CacheData GetCacheData() const { return {}; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue