1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-13 07:08:50 +01:00

[d3d9] Fix = alignent in CreateView

This commit is contained in:
Joshua Ashton 2021-11-11 23:51:59 +00:00
parent 06eb52387a
commit 5d4b7db9e6

View File

@ -448,7 +448,7 @@ namespace dxvk {
UINT Layer,
UINT Lod,
VkImageUsageFlags UsageFlags,
bool Srgb) {
bool Srgb) {
DxvkImageViewCreateInfo viewInfo;
viewInfo.format = m_mapping.ConversionFormatInfo.FormatColor != VK_FORMAT_UNDEFINED
? PickSRGB(m_mapping.ConversionFormatInfo.FormatColor, m_mapping.ConversionFormatInfo.FormatSrgb, Srgb)
@ -458,7 +458,7 @@ namespace dxvk {
viewInfo.usage = UsageFlags;
viewInfo.type = GetImageViewTypeFromResourceType(m_type, Layer);
viewInfo.minLevel = Lod;
viewInfo.numLevels = m_desc.MipLevels - Lod;
viewInfo.numLevels = m_desc.MipLevels - Lod;
viewInfo.minLayer = Layer == AllLayers ? 0 : Layer;
viewInfo.numLayers = Layer == AllLayers ? m_desc.ArraySize : 1;