diff --git a/taichi/rhi/device.h b/taichi/rhi/device.h index 42b9052c4fcea1..4376e36437e4d1 100644 --- a/taichi/rhi/device.h +++ b/taichi/rhi/device.h @@ -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. diff --git a/taichi/rhi/dx/dx_device.h b/taichi/rhi/dx/dx_device.h index 076de522fa9ed5..e849e8c183d83e 100644 --- a/taichi/rhi/dx/dx_device.h +++ b/taichi/rhi/dx/dx_device.h @@ -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, diff --git a/taichi/rhi/vulkan/vulkan_device.cpp b/taichi/rhi/vulkan/vulkan_device.cpp index 57440ab05d4535..d90286e1448bb5 100644 --- a/taichi/rhi/vulkan/vulkan_device.cpp +++ b/taichi/rhi/vulkan/vulkan_device.cpp @@ -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() diff --git a/taichi/runtime/gfx/runtime.cpp b/taichi/runtime/gfx/runtime.cpp index 9c4902a4854eac..741847d1c7dc27 100644 --- a/taichi/runtime/gfx/runtime.cpp +++ b/taichi/runtime/gfx/runtime.cpp @@ -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(); }