summaryrefslogtreecommitdiff
path: root/src/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu')
-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;
}