WGPU: Fixed 32-bit build, viewFormatCount narrowing since #3959. (#3995)

This commit is contained in:
vrimar
2026-09-24 00:17:38 -04:00
committed by GitHub
parent 81d81fba72
commit ae6bc904d5

View File

@@ -5317,7 +5317,7 @@ WGPU_IMPORT
,
.width = m_desc.width,
.height = m_desc.height,
.viewFormatCount = format != m_viewFormat ? 1ull : 0ull,
.viewFormatCount = format != m_viewFormat ? 1u : 0u,
.viewFormats = format != m_viewFormat ? &m_viewFormat : NULL,
.alphaMode = WGPUCompositeAlphaMode_Auto,
.presentMode = WGPUPresentMode_Fifo,