File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -156,14 +156,17 @@ _InsertDrawItemInstance(
156156
157157 // The draw item instances in a batch need to have compatible
158158 // pipeline configurations and resource allocations.
159- // Currently, draw items with distinct geometric shader hashes
160- // or buffer array hashes can never be part of the same batch.
161- // We combine these two hashes into a key that can be used to to
159+ // Currently, draw items with distinct geometric shader hashes,
160+ // materialNetwork shader hashes, buffer array hashes or material
161+ // tag hashes can never be part of the same batch.
162+ // We combine these four hashes into a key that can be used to to
162163 // reduce the number of batches which need to be considered
163164 // as candidate batches.
164165 size_t key = TfHash::Combine (
165166 drawItem->GetGeometricShader ()->ComputeHash (),
166- drawItem->GetBufferArraysHash ()
167+ drawItem->GetMaterialNetworkShader ()->ComputeHash (),
168+ drawItem->GetBufferArraysHash (),
169+ drawItem->GetMaterialTag ().Hash ()
167170 );
168171
169172 // When we're not allowing texture resource rebinding within a
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ HdSt_ShaderKey::ComputeHash() const
8787 }
8888 hash = TfHash::Combine (
8989 hash,
90+ UseMetalTessellation (),
9091 GetPolygonMode (),
9192 IsFrustumCullingPass (),
9293 GetLineWidth (),
You can’t perform that action at this time.
0 commit comments