Skip to content

Commit 11cb1ab

Browse files
author
swfly
committed
update
1 parent ac5fb51 commit 11cb1ab

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/backends/cuda/cuda_device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ void CUDADevice::destroy_buffer(uint64_t handle) noexcept {
397397
});
398398
}
399399

400-
ResourceCreationInfo CUDADevice::create_texture(PixelFormat format, uint dimension, uint width, uint height, uint depth, uint mipmap_levels, bool simultaneous_access, bool allow_raster_target) noexcept {
400+
ResourceCreationInfo CUDADevice::create_texture(PixelFormat format, uint dimension, uint width, uint height, uint depth, uint mipmap_levels, bool simultaneous_access, bool allow_raster_target, byte* external_buffer) noexcept {
401401
auto p = with_handle([=] {
402402
auto array_format = cuda_array_format(format);
403403
auto channels = pixel_format_channel_count(format);

src/backends/cuda/cuda_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class CUDADevice final : public DeviceInterface {
148148
BufferCreationInfo create_buffer(const Type *element, size_t elem_count, void *external_memory) noexcept override;
149149
BufferCreationInfo create_buffer(const ir::CArc<ir::Type> *element, size_t elem_count, void *external_memory) noexcept override;
150150
void destroy_buffer(uint64_t handle) noexcept override;
151-
ResourceCreationInfo create_texture(PixelFormat format, uint dimension, uint width, uint height, uint depth, uint mipmap_levels, bool simultaneous_access, bool allow_raster_target) noexcept override;
151+
ResourceCreationInfo create_texture(PixelFormat format, uint dimension, uint width, uint height, uint depth, uint mipmap_levels, bool simultaneous_access, bool allow_raster_target, byte* external_buffer) noexcept override;
152152
void destroy_texture(uint64_t handle) noexcept override;
153153
ResourceCreationInfo create_bindless_array(size_t size) noexcept override;
154154
void destroy_bindless_array(uint64_t handle) noexcept override;

src/backends/dx/DXApi/LCDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ ResourceCreationInfo LCDevice::create_texture(
225225
uint width,
226226
uint height,
227227
uint depth,
228-
uint mipmap_levels, bool simultaneous_access, bool allow_raster_target) noexcept {
228+
uint mipmap_levels, bool simultaneous_access, bool allow_raster_target, luisa::byte* external_buffer) noexcept {
229229
if (allow_raster_target) {
230230
if (simultaneous_access) {
231231
LUISA_INFO("DX do not allow simultaneous access texture as render target, set simultaneous_access = false");

src/backends/dx/DXApi/LCDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class LCDevice : public DeviceInterface, public vstd::IOperatorNewBase {
4141
ResourceCreationInfo create_texture(
4242
PixelFormat format, uint dimension,
4343
uint width, uint height, uint depth,
44-
uint mipmap_levels, bool simultaneous_access, bool allow_raster_target) noexcept override;
44+
uint mipmap_levels, bool simultaneous_access, bool allow_raster_target, luisa::byte* external_buffer) noexcept override;
4545
void destroy_texture(uint64_t handle) noexcept override;
4646

4747
// bindless array

0 commit comments

Comments
 (0)