Skip to content

Commit

Permalink
49ba24d4: DX12: fix view instancing caps check
Browse files Browse the repository at this point in the history
  • Loading branch information
NicSavichev committed Dec 19, 2024
1 parent e2dce2d commit 0f59336
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions prog/engine/drv/drv3d_DX12/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ bool PipelineVariant::generateRasterDescription(const RenderStateSystem::StaticS

if (static_state.needsViewInstancing())
{
G_ASSERT(d3d::get_driver_desc().caps.hasBasicViewInstancing);
target.append<CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING>(static_state.getViewInstancingDesc());
}
return true;
Expand Down
1 change: 0 additions & 1 deletion prog/engine/drv/drv3d_DX12/render_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,6 @@ class RenderStateSystem
}

result.viewInstanceCount = def.viewInstanceCount;
G_ASSERT(result.viewInstanceCount == 0 || d3d::get_driver_desc().caps.hasBasicViewInstancing);

result.enableConservativeRaster = def.conservativeRaster;
result.enableAlphaToCoverage = def.alphaToCoverage;
Expand Down

0 comments on commit 0f59336

Please sign in to comment.