差分

ナビゲーションに移動 検索に移動

VulkanのViewportをDirect3D準拠にする

346 バイト追加, 2023年6月13日 (火) 05:58
ページの作成:「* Y軸を反転させる * Depth範囲は0.0-1.0 <source lang="csharp"> VkViewport viewport = new() { x = 0.0f, y = MainWindow.Extent.height, width = MainWin…」
* Y軸を反転させる
* Depth範囲は0.0-1.0

<source lang="csharp">
VkViewport viewport = new()
{
x = 0.0f,
y = MainWindow.Extent.height,
width = MainWindow.Extent.width,
height = -MainWindow.Extent.height,
minDepth = 0.0f,
maxDepth = 1.0f
};
vkCmdSetViewport(commandBuffer, viewport);
</source>

[[category: Vulkan]]
匿名利用者

案内メニュー