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 4e53f0a commit 40f0307
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion taichi/rhi/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class TI_DLL_EXPORT Pipeline {
* @return The pointer to the new ShaderResourceSet
*/
virtual ShaderResourceSet *create_templated_set(int set_index = 0) = 0;

/**
* Create a templated Shader Resource Set based on the pipeline's set.
* Wrapped in unique pointer.
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
4 changes: 2 additions & 2 deletions taichi/rhi/vulkan/vulkan_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,9 +872,9 @@ RhiResult VulkanCommandList::bind_shader_resources(ShaderResourceSet *res,

if (current_pipeline_->pipeline_layout()->ref_desc_layouts[set_index] !=
set_layout) {
//return RhiResult::invalid_usage;
// 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 40f0307

Please sign in to comment.