diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-06-01 16:00:06 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-06-01 16:00:06 +0000 |
| commit | c3a81922ba0ddf3da52d5e0297715383ee93c322 (patch) | |
| tree | 46133db82af1b4f418cfe6eb44ee7052e2e7694b /Graphics/GraphicsEngineVulkan | |
| parent | Implemented buffer copy in Vk (diff) | |
| download | DiligentCore-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.cpp | 2 |
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) |
