diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-12-11 13:07:30 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-12-11 19:53:16 -0400 |
| commit | 271a3264f33766524224462537685b6e5c691f9d (patch) | |
| tree | d97f52424561ab3abfac243f408e2b7e31d335de /src/video_core/shader/shader_ir.h | |
| parent | 900b2e5cae3d019e49a679ffbb75e3d840494c9b (diff) | |
Shader_Ir: default failed tracks on bindless samplers to null values.
Diffstat (limited to 'src/video_core/shader/shader_ir.h')
| -rw-r--r-- | src/video_core/shader/shader_ir.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index 580f84fcb..8324432ae 100644 --- a/src/video_core/shader/shader_ir.h +++ b/src/video_core/shader/shader_ir.h @@ -313,11 +313,11 @@ private: std::optional<u32> buffer = std::nullopt); /// Accesses a texture sampler - const Sampler& GetSampler(const Tegra::Shader::Sampler& sampler, + const Sampler* GetSampler(const Tegra::Shader::Sampler& sampler, std::optional<SamplerInfo> sampler_info = std::nullopt); /// Accesses a texture sampler for a bindless texture. - const Sampler& GetBindlessSampler(Tegra::Shader::Register reg, + const Sampler* GetBindlessSampler(Tegra::Shader::Register reg, std::optional<SamplerInfo> sampler_info = std::nullopt); /// Accesses an image. |
