diff options
Diffstat (limited to 'src/gpu/effect.cc')
| -rw-r--r-- | src/gpu/effect.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/gpu/effect.cc b/src/gpu/effect.cc index 117ede2..0e53862 100644 --- a/src/gpu/effect.cc +++ b/src/gpu/effect.cc @@ -44,17 +44,10 @@ void Effect::blit_input_to_output(WGPUCommandEncoder encoder, return; } -#if defined(DEMO_CROSS_COMPILE_WIN32) - WGPUImageCopyTexture src_copy = { + GpuTextureCopyInfo src_copy = { .texture = src, .mipLevel = 0, .origin = {0, 0, 0}}; - WGPUImageCopyTexture dst_copy = { + GpuTextureCopyInfo dst_copy = { .texture = dst, .mipLevel = 0, .origin = {0, 0, 0}}; -#else - WGPUTexelCopyTextureInfo src_copy = { - .texture = src, .mipLevel = 0, .origin = {0, 0, 0}}; - WGPUTexelCopyTextureInfo dst_copy = { - .texture = dst, .mipLevel = 0, .origin = {0, 0, 0}}; -#endif WGPUExtent3D extent = {static_cast<unsigned int>(width_), static_cast<unsigned int>(height_), 1}; |
