Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d4ffd6c

Browse files
committed
Include the new primitive type in the pipeline hash
1 parent e7d7eda commit d4ffd6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

impeller/renderer/pipeline_descriptor.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include "impeller/renderer/pipeline_descriptor.h"
66

7+
#include "impeller/fml/hash_combine.h"
78
#include "impeller/renderer/formats.h"
89
#include "impeller/renderer/shader_function.h"
910
#include "impeller/renderer/shader_library.h"
@@ -40,6 +41,7 @@ std::size_t PipelineDescriptor::GetHash() const {
4041
fml::HashCombineSeed(seed, back_stencil_attachment_descriptor_);
4142
fml::HashCombineSeed(seed, winding_order_);
4243
fml::HashCombineSeed(seed, cull_mode_);
44+
fml::HashCombineSeed(seed, primitive_type_);
4345
return seed;
4446
}
4547

@@ -57,7 +59,8 @@ bool PipelineDescriptor::IsEqual(const PipelineDescriptor& other) const {
5759
back_stencil_attachment_descriptor_ ==
5860
other.back_stencil_attachment_descriptor_ &&
5961
winding_order_ == other.winding_order_ &&
60-
cull_mode_ == other.cull_mode_;
62+
cull_mode_ == other.cull_mode_ &&
63+
primitive_type_ == other.primitive_type_;
6164
}
6265

6366
PipelineDescriptor& PipelineDescriptor::SetLabel(std::string label) {

0 commit comments

Comments
 (0)