[VideoPresenter] Fix logical width/height calculation (#473)

This commit is contained in:
Berk
2026-07-20 16:57:38 +03:00
committed by GitHub
parent 25d741b35b
commit ac883e44fa
@@ -5457,6 +5457,8 @@ internal static unsafe class VulkanVideoPresenter
FlipVersion = version, FlipVersion = version,
Width = source.Width, Width = source.Width,
Height = source.Height, Height = source.Height,
LogicalWidth = source.LogicalWidth,
LogicalHeight = source.LogicalHeight,
MipLevels = 1, MipLevels = 1,
GuestFormat = source.GuestFormat, GuestFormat = source.GuestFormat,
Format = source.Format, Format = source.Format,
@@ -7604,6 +7606,8 @@ internal static unsafe class VulkanVideoPresenter
Address = 0, Address = 0,
Width = width, Width = width,
Height = height, Height = height,
LogicalWidth = width,
LogicalHeight = height,
MipLevels = 1, MipLevels = 1,
GuestFormat = GetGuestTextureFormat(texture.Format, texture.NumberType), GuestFormat = GetGuestTextureFormat(texture.Format, texture.NumberType),
Format = vkFormat, Format = vkFormat,
@@ -7810,6 +7814,8 @@ internal static unsafe class VulkanVideoPresenter
Address = texture.Address, Address = texture.Address,
Width = width, Width = width,
Height = height, Height = height,
LogicalWidth = width,
LogicalHeight = height,
MipLevels = 1, MipLevels = 1,
GuestFormat = guestFormat, GuestFormat = guestFormat,
Format = vkFormat, Format = vkFormat,