Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ye committed Jun 21, 2022
1 parent 2b9af73 commit c5a9643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/backends/vulkan/vulkan_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class VulkanResourceBinder : public ResourceBinder {
sizeof(VulkanResourceBinder::Binding) % sizeof(uint32_t) == 0,
"sizeof(VulkanResourceBinder::Binding) is not a multiple of 4");
size_t n = sizeof(VulkanResourceBinder::Binding) / sizeof(uint32_t);
for (int i = 0; i < n; i++) {
for (size_t i = 0; i < n; i++) {
binding_hash = binding_hash ^ u32_ptr[i];
binding_hash = (binding_hash << 7) | (binding_hash >> (64 - 7));
}
Expand Down

0 comments on commit c5a9643

Please sign in to comment.