summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-06-01 16:00:06 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-06-01 16:00:06 +0000
commitc3a81922ba0ddf3da52d5e0297715383ee93c322 (patch)
tree46133db82af1b4f418cfe6eb44ee7052e2e7694b /Graphics/GraphicsEngineVulkan
parentImplemented buffer copy in Vk (diff)
downloadDiligentCore-c3a81922ba0ddf3da52d5e0297715383ee93c322.tar.gz
DiligentCore-c3a81922ba0ddf3da52d5e0297715383ee93c322.zip
Fixed issue with computing the number of patch control points in Vk
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/VulkanTypeConversions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/VulkanTypeConversions.cpp b/Graphics/GraphicsEngineVulkan/src/VulkanTypeConversions.cpp
index 95a64f3e..673c8eea 100644
--- a/Graphics/GraphicsEngineVulkan/src/VulkanTypeConversions.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/VulkanTypeConversions.cpp
@@ -998,7 +998,7 @@ void PrimitiveTopology_To_VkPrimitiveTopologyAndPatchCPCount(PRIMITIVE_TOPOLOGY
VERIFY_EXPR(PrimTopology >= PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST && PrimTopology < PRIMITIVE_TOPOLOGY_NUM_TOPOLOGIES);
VkPrimTopology = VK_PRIMITIVE_TOPOLOGY_PATCH_LIST;
- PatchControlPoints = static_cast<uint32_t>(VkPrimTopology) - static_cast<uint32_t>(PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST) + 1;
+ PatchControlPoints = static_cast<uint32_t>(PrimTopology) - static_cast<uint32_t>(PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST) + 1;
}
VkFilter FilterTypeToVkFilter(FILTER_TYPE FilterType)