[D3D12] DXBC: Most of tfetch
This commit is contained in:
@@ -45,7 +45,7 @@ void D3D12Shader::SetTexturesAndSamplers(
|
||||
}
|
||||
sampler_bindings_.clear();
|
||||
sampler_bindings_.reserve(sampler_binding_count);
|
||||
for (uint32_t i = 0; i < texture_srv_count; ++i) {
|
||||
for (uint32_t i = 0; i < sampler_binding_count; ++i) {
|
||||
SamplerBinding sampler;
|
||||
const DxbcShaderTranslator::SamplerBinding& translator_sampler =
|
||||
sampler_bindings[i];
|
||||
|
||||
@@ -468,7 +468,7 @@ void TextureCache::WriteSampler(uint32_t fetch_constant,
|
||||
aniso_filter = AnisoFilter(fetch.aniso_filter);
|
||||
}
|
||||
D3D12_SAMPLER_DESC desc;
|
||||
if (fetch.aniso_filter) {
|
||||
if (aniso_filter != AnisoFilter::kDisabled) {
|
||||
desc.Filter = D3D12_FILTER_ANISOTROPIC;
|
||||
desc.MaxAnisotropy = std::min(1u << (uint32_t(aniso_filter) - 1), 16u);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user