From 1eb62804b2c2c1acff94558acc648bb62ea7d051 Mon Sep 17 00:00:00 2001 From: Gangzheng Tong Date: Thu, 10 Jul 2025 20:55:15 -0700 Subject: Configure the surface with right format (#7710) --- examples/example-base/example-base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/example-base/example-base.cpp') diff --git a/examples/example-base/example-base.cpp b/examples/example-base/example-base.cpp index 2c7dd277c..9759e9f42 100644 --- a/examples/example-base/example-base.cpp +++ b/examples/example-base/example-base.cpp @@ -58,7 +58,7 @@ Slang::Result WindowedAppBase::initializeBase( rhi::SurfaceConfig surfaceConfig = {}; - surfaceConfig.format = Format::RGBA8Unorm; + surfaceConfig.format = gSurface->getInfo().preferredFormat; surfaceConfig.width = width; surfaceConfig.height = height; surfaceConfig.desiredImageCount = kSwapchainImageCount; -- cgit v1.2.3