Skip to content

Commit

Permalink
fallback: tex3d update
Browse files Browse the repository at this point in the history
  • Loading branch information
swfly committed Dec 2, 2024
1 parent 5385112 commit f8724d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backends/fallback/fallback_texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ FallbackTexture::FallbackTexture(PixelStorage storage, uint dim, uint3 size, uin
auto size_pixels = _mip_offsets[levels - 1u] + s.x * s.y;
_data = luisa::allocate_with_allocator<std::byte>(static_cast<size_t>(size_pixels) << _pixel_stride_shift);
} else {
_pixel_stride_shift = std::bit_width(static_cast<uint>(pixel_storage_size(storage, make_uint3(1u)))) - 1u;
_size[0] = size.x;
_size[1] = size.y;
_size[2] = size.z;
Expand Down

0 comments on commit f8724d4

Please sign in to comment.