Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 22, 2022
1 parent 2b0973a commit 75aa8e4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion taichi/codegen/spirv/spirv_codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,8 @@ class TaskCodegen : public IRVisitor {
}
};
struct ValueCmp {
bool operator()(const spirv::Value &lhs, const spirv::Value &rhs) const {
bool operator()(const spirv::Value &lhs,
const spirv::Value &rhs) const {
return lhs.id == rhs.id;
}
};
Expand Down
2 changes: 1 addition & 1 deletion taichi/rhi/dx/dx_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void check_dx_error(HRESULT hr, const char *msg);

class Dx11ResourceSet : public ShaderResourceSet {
public:
Dx11ResourceSet() = default;
Dx11ResourceSet() = default;
~Dx11ResourceSet() override;

ShaderResourceSet &rw_buffer(uint32_t binding,
Expand Down
2 changes: 1 addition & 1 deletion taichi/rhi/vulkan/vulkan_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ RhiResult VulkanCommandList::bind_shader_resources(ShaderResourceSet *res,
set_layout) {
return RhiResult::invalid_usage;
}

VkPipelineLayout pipeline_layout =
current_pipeline_->pipeline_layout()->layout;
VkPipelineBindPoint bind_point = current_pipeline_->is_graphics()
Expand Down
2 changes: 1 addition & 1 deletion taichi/runtime/gfx/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ void GfxRuntime::launch_kernel(KernelHandle handle, RuntimeContext *host_ctx) {
current_cmdlist_->bind_pipeline(vp);
RhiResult status = current_cmdlist_->bind_shader_resources(bindings.get());
TI_ERROR_IF(status != RhiResult::success,
"Resource binding error : RhiResult({})", status);
"Resource binding error : RhiResult({})", status);
current_cmdlist_->dispatch(group_x);
current_cmdlist_->memory_barrier();
}
Expand Down

0 comments on commit 75aa8e4

Please sign in to comment.