[D3D12] DXBC samplers
This commit is contained in:
@@ -196,17 +196,14 @@ bool PipelineCache::TranslateShader(D3D12Shader* shader,
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO(Triang3l): Re-enable this when the DXBC shader translators supports
|
||||
// textures.
|
||||
uint32_t texture_srv_count;
|
||||
const DxbcShaderTranslator::TextureSRV* texture_srvs =
|
||||
shader_translator_->GetTextureSRVs(texture_srv_count);
|
||||
#if 0
|
||||
uint32_t sampler_count;
|
||||
const uint32_t* sampler_fetch_constants =
|
||||
shader_translator_->GetSamplerFetchConstants(sampler_count);
|
||||
#endif
|
||||
shader->SetTexturesAndSamplers(texture_srvs, texture_srv_count, nullptr, 0);
|
||||
uint32_t sampler_binding_count;
|
||||
const DxbcShaderTranslator::SamplerBinding* sampler_bindings =
|
||||
shader_translator_->GetSamplerBindings(sampler_binding_count);
|
||||
shader->SetTexturesAndSamplers(texture_srvs, texture_srv_count,
|
||||
sampler_bindings, sampler_binding_count);
|
||||
|
||||
if (shader->is_valid()) {
|
||||
XELOGGPU("Generated %s shader (%db) - hash %.16" PRIX64 ":\n%s\n",
|
||||
|
||||
Reference in New Issue
Block a user