mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06: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:
@ -25,9 +25,11 @@ public:
|
||||
virtual ~AbstractShader() = default;
|
||||
|
||||
ShaderStage GetStage() const { return m_stage; }
|
||||
|
||||
// Shader binaries represent the input source code in a lower-level form. e.g. SPIR-V or DXBC.
|
||||
// The shader source code is not required to create a shader object from the binary.
|
||||
using BinaryData = std::vector<u8>;
|
||||
virtual bool HasBinary() const = 0;
|
||||
virtual BinaryData GetBinary() const = 0;
|
||||
virtual BinaryData GetBinary() const { return {}; }
|
||||
|
||||
protected:
|
||||
ShaderStage m_stage;
|
||||
|
Reference in New Issue
Block a user