diff options
| author | Stenzek <stenzek@gmail.com> | 2019-04-15 21:55:26 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2019-04-16 00:09:47 +1000 |
| commit | 61a656570e2afc7a474c44de5795f5d564043c6c (patch) | |
| tree | 91f6d1b43760efa41a7262df795658c854d4f447 /Source/Core/VideoBackends/Null/Render.cpp | |
| parent | 2863183532bde638918b23ac37f67157fbc03d95 (diff) | |
AbstractPipeline: Support returning "cache data"
"Cache data" can be used to assist a driver with creating pipelines by
using previously-compiled shader ISA.
Diffstat (limited to 'Source/Core/VideoBackends/Null/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Null/Render.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Null/Render.cpp b/Source/Core/VideoBackends/Null/Render.cpp index ca57a0bdeb..6be3ee4753 100644 --- a/Source/Core/VideoBackends/Null/Render.cpp +++ b/Source/Core/VideoBackends/Null/Render.cpp @@ -46,9 +46,6 @@ class NullShader final : public AbstractShader public: explicit NullShader(ShaderStage stage) : AbstractShader(stage) {} ~NullShader() = default; - - bool HasBinary() const override { return false; } - BinaryData GetBinary() const override { return {}; } }; std::unique_ptr<AbstractShader> Renderer::CreateShaderFromSource(ShaderStage stage, @@ -70,7 +67,9 @@ public: ~NullPipeline() override = default; }; -std::unique_ptr<AbstractPipeline> Renderer::CreatePipeline(const AbstractPipelineConfig& config) +std::unique_ptr<AbstractPipeline> Renderer::CreatePipeline(const AbstractPipelineConfig& config, + const void* cache_data, + size_t cache_data_length) { return std::make_unique<NullPipeline>(); } |
