Skip to content

Commit

Permalink
clear code...
Browse files Browse the repository at this point in the history
  • Loading branch information
swfly committed Dec 2, 2024
1 parent f8724d4 commit d506c31
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/backends/fallback/fallback_texture_sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ namespace luisa::compute::fallback
{
void texture_write_2d_float_wrapper(void* ptr, uint x, uint y, void* val)
{
auto b = static_cast<float4 *>(val);
auto view = reinterpret_cast<const FallbackTextureView *>(ptr);
texture_write_2d_float(reinterpret_cast<const FallbackTextureView *>(ptr), x, y, *(float4 *) val);
}

Expand All @@ -23,8 +21,6 @@ namespace luisa::compute::fallback

void texture_write_2d_uint_wrapper(void* ptr, uint x, uint y, void* val)
{
auto b = static_cast<float4 *>(val);
auto view = reinterpret_cast<const FallbackTextureView *>(ptr);
texture_write_2d_uint(reinterpret_cast<const FallbackTextureView *>(ptr), x, y, *(uint4 *) val);
}

Expand Down

0 comments on commit d506c31

Please sign in to comment.