summaryrefslogtreecommitdiff
path: root/src/effects/hybrid3_d_effect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/hybrid3_d_effect.cc')
-rw-r--r--src/effects/hybrid3_d_effect.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/effects/hybrid3_d_effect.cc b/src/effects/hybrid3_d_effect.cc
index 37d4158..33a2d73 100644
--- a/src/effects/hybrid3_d_effect.cc
+++ b/src/effects/hybrid3_d_effect.cc
@@ -33,15 +33,9 @@ Hybrid3D::Hybrid3D(const GpuContext& ctx,
// Write white pixel
uint32_t white_pixel = 0xFFFFFFFF;
-#if defined(DEMO_CROSS_COMPILE_WIN32)
- WGPUImageCopyTexture dst = {
- .texture = dummy_texture_, .mipLevel = 0, .origin = {0, 0, 0}};
- WGPUTextureDataLayout data_layout = {.bytesPerRow = 4, .rowsPerImage = 1};
-#else
WGPUTexelCopyTextureInfo dst = {
.texture = dummy_texture_, .mipLevel = 0, .origin = {0, 0, 0}};
WGPUTexelCopyBufferLayout data_layout = {.bytesPerRow = 4, .rowsPerImage = 1};
-#endif
WGPUExtent3D size = {1, 1, 1};
wgpuQueueWriteTexture(ctx_.queue, &dst, &white_pixel, 4, &data_layout, &size);