diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2017-07-30 01:00:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-30 01:00:16 -0700 |
| commit | ba57605266b9ab178963bf56e146f355d1b93cd4 (patch) | |
| tree | 0ddc89cfca6db3d343d317c18b7c07c9ab83e9c4 /Source/Core/VideoBackends/Vulkan/ObjectCache.h | |
| parent | 5bad2ee4a4129e734ff4f4d861cedc4cd573df55 (diff) | |
| parent | b154edb4fbdb327920a33b44f35f34cdf2636d6f (diff) | |
Merge pull request #5702 from stenzek/ubershaders
Ubershaders 2.0
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/ObjectCache.h')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/ObjectCache.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/ObjectCache.h b/Source/Core/VideoBackends/Vulkan/ObjectCache.h index dd7b1ed739..bfcec09166 100644 --- a/Source/Core/VideoBackends/Vulkan/ObjectCache.h +++ b/Source/Core/VideoBackends/Vulkan/ObjectCache.h @@ -15,6 +15,7 @@ #include "Common/LinearDiskCache.h" #include "VideoBackends/Vulkan/Constants.h" +#include "VideoBackends/Vulkan/Texture2D.h" #include "VideoCommon/GeometryShaderGen.h" #include "VideoCommon/PixelShaderGen.h" @@ -62,6 +63,9 @@ public: VkSampler GetLinearSampler() const { return m_linear_sampler; } VkSampler GetSampler(const SamplerState& info); + // Dummy image for samplers that are unbound + Texture2D* GetDummyImage() const { return m_dummy_texture.get(); } + VkImageView GetDummyImageView() const { return m_dummy_texture->GetView(); } // Perform at startup, create descriptor layouts, compiles all static shaders. bool Initialize(); @@ -89,6 +93,9 @@ private: VkSampler m_linear_sampler = VK_NULL_HANDLE; std::map<SamplerState, VkSampler> m_sampler_cache; + + // Dummy image for samplers that are unbound + std::unique_ptr<Texture2D> m_dummy_texture; }; extern std::unique_ptr<ObjectCache> g_object_cache; |
