Search Issue Tracker
Fixed
Fixed in 2022.2.0a16
Votes
0
Found in
2022.2.0a11
Issue ID
UUM-478
Regression
No
Confusing comment in Vulkan native plugin documentation - IUnityGraphicsVulkan.h
In the IUnityGraphicsVulkan.h file, which provides the interface for creating Vulkan native plugins with Unity, there is a confusing comment relating to the kUnityVulkanRenderPass_EnsureInside enum value at line 96.
To further clarify the issue, consider the official Unity Vulkan native plugin example here: https://github.com/Unity-Technologies/NativeRenderingPlugin/blob/master/PluginSource/source/RenderAPI_Vulkan.cpp
On line 499 of this file, the native plugin event is configured to use kUnityVulkanRenderPass_EnsureInside.
The rendering function RenderAPI_Vulkan::DrawSimpleTriangles starting on line 637 submits a draw call to the command buffer, but it does not start a new render pass. It accesses the render pass provided by Unity in UnityVulkanRecordingState. Therefore, it's clear that UnityVulkanRecordingState::renderPass is non-null in this function, which would imply that a render pass is currently in progress. That is contrary to what the documentation seems to be saying.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note:
PR: https://ono.unity3d.com/unity/unity/pull-request/143237/_/platform/graphics/case1416525-fix-typo