[D3D12] Pipeline cache and command processor formatting

This commit is contained in:
Triang3l
2018-07-29 00:57:25 +03:00
parent b567b9e9cc
commit 2d59231993
2 changed files with 28 additions and 27 deletions

View File

@@ -151,8 +151,8 @@ bool D3D12CommandProcessor::IssueDraw(PrimitiveType primitive_type,
ID3D12RootSignature* root_signature;
auto pipeline_status = pipeline_cache_->ConfigurePipeline(
vertex_shader, pixel_shader, primitive_type,
index_buffer_info != nullptr ? index_buffer_info->format :
IndexFormat::kInt16,
index_buffer_info != nullptr ? index_buffer_info->format
: IndexFormat::kInt16,
&pipeline, &root_signature);
if (pipeline_status == PipelineCache::UpdateStatus::kError) {
return false;