diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-16 15:05:01 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-16 15:05:01 +0100 |
| commit | a8b1525ca86819757b06b51fedf6aff222cf52bb (patch) | |
| tree | 06d8507a02dcc502ee09ea87931d7c23de00bdba /src | |
| parent | 478b4db1bea6fd973edad40c45fb393d2dfde563 (diff) | |
fix(build): add missing headers and enum casts for strict compilation
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/audio/audio.cc | 1 | ||||
| -rw-r--r-- | src/audio/backend/miniaudio_backend.cc | 1 | ||||
| -rw-r--r-- | src/gpu/sequence.cc | 8 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/audio/audio.cc b/src/audio/audio.cc index 780691a..b60dad0 100644 --- a/src/audio/audio.cc +++ b/src/audio/audio.cc @@ -13,6 +13,7 @@ #include "miniaudio.h" #include <cmath> +#include <ctime> #include <stdio.h> // Global ring buffer for audio streaming diff --git a/src/audio/backend/miniaudio_backend.cc b/src/audio/backend/miniaudio_backend.cc index a921453..ac473b4 100644 --- a/src/audio/backend/miniaudio_backend.cc +++ b/src/audio/backend/miniaudio_backend.cc @@ -8,6 +8,7 @@ #include "util/debug.h" #include "util/fatal_error.h" #include <cmath> +#include <ctime> // Real-time peak measured at actual playback time // Updated in audio_callback when samples are read from ring buffer diff --git a/src/gpu/sequence.cc b/src/gpu/sequence.cc index d0a925f..38a6866 100644 --- a/src/gpu/sequence.cc +++ b/src/gpu/sequence.cc @@ -136,15 +136,15 @@ void NodeRegistry::create_texture(Node& node) { switch (node.type) { case NodeType::U8X4_NORM: format = WGPUTextureFormat_RGBA8Unorm; - usage = WGPUTextureUsage_RenderAttachment | WGPUTextureUsage_TextureBinding; + usage = (WGPUTextureUsage)(WGPUTextureUsage_RenderAttachment | WGPUTextureUsage_TextureBinding); break; case NodeType::F32X4: format = WGPUTextureFormat_RGBA32Float; - usage = WGPUTextureUsage_RenderAttachment | WGPUTextureUsage_TextureBinding; + usage = (WGPUTextureUsage)(WGPUTextureUsage_RenderAttachment | WGPUTextureUsage_TextureBinding); break; case NodeType::F16X8: format = WGPUTextureFormat_RGBA16Float; // WebGPU doesn't have 8-channel, use RGBA16 - usage = WGPUTextureUsage_RenderAttachment | WGPUTextureUsage_TextureBinding; + usage = (WGPUTextureUsage)(WGPUTextureUsage_RenderAttachment | WGPUTextureUsage_TextureBinding); break; case NodeType::DEPTH24: format = WGPUTextureFormat_Depth24Plus; @@ -152,7 +152,7 @@ void NodeRegistry::create_texture(Node& node) { break; case NodeType::COMPUTE_F32: format = WGPUTextureFormat_RGBA32Float; - usage = WGPUTextureUsage_StorageBinding | WGPUTextureUsage_TextureBinding; + usage = (WGPUTextureUsage)(WGPUTextureUsage_StorageBinding | WGPUTextureUsage_TextureBinding); break; } |
