From 7ece76a6797c38d203d1b8f0e25dde0e41b68d8b Mon Sep 17 00:00:00 2001 From: bridgewaterrobbie Date: Wed, 30 Apr 2025 11:46:47 -0400 Subject: [PATCH] Add a required feature for Filament to requestDevice --- filament/backend/src/webgpu/platform/WebGPUPlatform.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/filament/backend/src/webgpu/platform/WebGPUPlatform.cpp b/filament/backend/src/webgpu/platform/WebGPUPlatform.cpp index 6cc264d055..b42b9314f1 100644 --- a/filament/backend/src/webgpu/platform/WebGPUPlatform.cpp +++ b/filament/backend/src/webgpu/platform/WebGPUPlatform.cpp @@ -99,10 +99,9 @@ wgpu::Adapter WebGPUPlatform::requestAdapter(wgpu::Surface const& surface) { wgpu::Device WebGPUPlatform::requestDevice(wgpu::Adapter const& adapter) { // TODO consider passing limits - constexpr std::array desiredFeatures = { - wgpu::FeatureName::DepthClipControl, - wgpu::FeatureName::Depth32FloatStencil8, - wgpu::FeatureName::CoreFeaturesAndLimits }; + constexpr std::array desiredFeatures = { wgpu::FeatureName::DepthClipControl, + wgpu::FeatureName::Depth32FloatStencil8, wgpu::FeatureName::CoreFeaturesAndLimits, + wgpu::FeatureName::TransientAttachments }; std::vector requiredFeatures; requiredFeatures.reserve(desiredFeatures.size()); wgpu::SupportedFeatures supportedFeatures;