summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_pipeline_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_pipeline_cache.h')
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.h b/src/video_core/renderer_vulkan/vk_pipeline_cache.h
index c70da6da4..404f2b3f7 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.h
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.h
@@ -153,31 +153,46 @@ public:
std::array<Shader*, Maxwell::MaxShaderProgram> GetShaders();
- VKGraphicsPipeline& GetGraphicsPipeline(const GraphicsPipelineCacheKey& key,
+ VKGraphicsPipeline* GetGraphicsPipeline(const GraphicsPipelineCacheKey& key,
VideoCommon::Shader::AsyncShaders& async_shaders);
VKComputePipeline& GetComputePipeline(const ComputePipelineCacheKey& key);
- const VKDevice& GetDevice() {
+ const VKDevice& GetDevice() const {
return device;
}
VKScheduler& GetScheduler() {
return scheduler;
}
+ const VKScheduler& GetScheduler() const {
+ return scheduler;
+ }
VKDescriptorPool& GetDescriptorPool() {
return descriptor_pool;
}
+ const VKDescriptorPool& GetDescriptorPool() const {
+ return descriptor_pool;
+ }
+
VKUpdateDescriptorQueue& GetUpdateDescriptorQueue() {
return update_descriptor_queue;
}
+ const VKUpdateDescriptorQueue& GetUpdateDescriptorQueue() const {
+ return update_descriptor_queue;
+ }
+
VKRenderPassCache& GetRenderpassCache() {
return renderpass_cache;
}
+ const VKRenderPassCache& GetRenderpassCache() const {
+ return renderpass_cache;
+ }
+
protected:
void OnShaderRemoval(Shader* shader) final;