Shader_Ir: default failed tracks on bindless samplers to null values.

This commit is contained in:
Fernando Sahmkow
2019-12-11 13:07:30 -04:00
committed by FernandoS27
parent 900b2e5cae
commit 271a3264f3
2 changed files with 77 additions and 24 deletions

View File

@ -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.