diff options
Diffstat (limited to 'src/gpu/gpu.h')
| -rw-r--r-- | src/gpu/gpu.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gpu/gpu.h b/src/gpu/gpu.h index 7754b29..bbced41 100644 --- a/src/gpu/gpu.h +++ b/src/gpu/gpu.h @@ -54,9 +54,7 @@ inline void gpu_init_color_attachment(WGPURenderPassColorAttachment& attachment, attachment.loadOp = WGPULoadOp_Clear; attachment.storeOp = WGPUStoreOp_Store; attachment.clearValue = {0.0f, 0.0f, 0.0f, 1.0f}; -#if !defined(DEMO_CROSS_COMPILE_WIN32) attachment.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED; -#endif } struct TextureWithView { @@ -64,13 +62,8 @@ struct TextureWithView { WGPUTextureView view; }; -#if defined(DEMO_CROSS_COMPILE_WIN32) -using GpuTextureCopyInfo = WGPUImageCopyTexture; -using GpuTextureDataLayout = WGPUTextureDataLayout; -#else using GpuTextureCopyInfo = WGPUTexelCopyTextureInfo; using GpuTextureDataLayout = WGPUTexelCopyBufferLayout; -#endif GpuBuffer gpu_create_buffer(WGPUDevice device, size_t size, uint32_t usage, const void* data = nullptr); |
