From a8b1525ca86819757b06b51fedf6aff222cf52bb Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 16 Feb 2026 15:05:01 +0100 Subject: fix(build): add missing headers and enum casts for strict compilation Co-Authored-By: Claude Sonnet 4.5 --- src/gpu/sequence.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gpu') 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; } -- cgit v1.2.3