[UWP] [DIRECTX + XAML]如何使用'最近邻'插值显示swapChainPanel [英] [UWP][DIRECTX+XAML] How to display the swapChainPanel using 'nearest neighbor' interpolation

查看:100
本文介绍了[UWP] [DIRECTX + XAML]如何使用'最近邻'插值显示swapChainPanel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的游戏中,我有一个directx交换链面板渲染目标大小,固定480 x 270像素。但是,我没有任何运气找到我可以指定交换链面板表示使用"最近邻"插值而不是
当它呈现给XAML层时默认的"平滑"插值。


具体示例:渲染目标交换链面板大小为480 x 270像素,XAML窗口大小恰好是960 x 540像素的两倍。当拉伸到适合窗口时,这应该会产生漂亮的2x像素比,但是它会变得模糊和平滑
,因为它适合拉伸。如果使用"最近邻居",只要显示窗口的因子大于480x270,它就会保持清晰。


如何判断交换链面板演示文稿是否使用"最近邻居" ;放大时插值?

解决方案

您好Nate Monster LLC,


我会报告此事发现并联系熟悉此问题的人,感谢您耐心等待时间延迟。


致以最好的问候,


Breeze


In my game, I have a directx swap chain panel render target size that is a fixed 480 x 270 pixels. However, I have not had any luck finding out where I can specify that the swap chain panel presentation utilize 'nearest neighbor' interpolation rather than the default 'smooth' interpolation when it's presented to the XAML layer.

Specific example: Render target swap chain panel size is 480 x 270 pixels and the XAML window size is exactly double at 960 x 540 pixels. This should result in a nice crisp 2x pixel ratio when stretched to fit the window but it is instead blurred and smoothed as it is stretched it fit. If 'nearest neighbor' were used it would remain crisp as long as the display window was some greater factor of 480x270.

How can I tell the swap chain panel presentation to utilize "nearest neighbor" interpolation when scaling up?

解决方案

Hi Nate Monster LLC,

I will report this issue and contact someone who is familiar with this issue, appreciate your patience for the time delay.

Best regards,

Breeze


这篇关于[UWP] [DIRECTX + XAML]如何使用'最近邻'插值显示swapChainPanel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆