summaryrefslogtreecommitdiff
path: root/src/gpu/sequence.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-16 15:05:01 +0100
committerskal <pascal.massimino@gmail.com>2026-02-16 15:05:01 +0100
commita8b1525ca86819757b06b51fedf6aff222cf52bb (patch)
tree06d8507a02dcc502ee09ea87931d7c23de00bdba /src/gpu/sequence.cc
parent478b4db1bea6fd973edad40c45fb393d2dfde563 (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/gpu/sequence.cc')
-rw-r--r--src/gpu/sequence.cc8
1 files changed, 4 insertions, 4 deletions
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;
}