Skip to content

Commit 9ec4476

Browse files
committed
fix clang compilation errors
1 parent 9570fe8 commit 9ec4476

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/luisa/runtime/rhi/device_interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class LC_RUNTIME_API DeviceInterface : public luisa::enable_shared_from_this<Dev
137137
virtual void destroy_texture(uint64_t handle) noexcept = 0;
138138

139139
// bindless array
140-
[[nodiscard]] virtual ResourceCreationInfo create_bindless_array(size_t size, BindlessType type) noexcept = 0;
140+
[[nodiscard]] virtual ResourceCreationInfo create_bindless_array(size_t size, BindlessType type = BindlessType::None) noexcept = 0;
141141
virtual void destroy_bindless_array(uint64_t handle) noexcept = 0;
142142

143143
// stream

src/backends/common/rust_device_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ class RustDevice final : public DeviceInterface {
542542
device.destroy_texture(device.device, api::Texture{handle});
543543
}
544544

545-
ResourceCreationInfo create_bindless_array(size_t size) noexcept override {
545+
ResourceCreationInfo create_bindless_array(size_t size, BindlessType type) noexcept override {
546546
api::CreatedResourceInfo array = device.create_bindless_array(device.device, size);
547547
ResourceCreationInfo info{};
548548
info.handle = array.handle;

0 commit comments

Comments
 (0)