mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 18:27:50 +00:00
vulkan gpu: set the sample count for depth prepass
Fixes https://github.com/libsdl-org/SDL/issues/14500
(cherry picked from commit 1fc093491a)
This commit is contained in:
parent
c49de41ef3
commit
8199076878
1 changed files with 2 additions and 0 deletions
|
|
@ -7169,6 +7169,8 @@ static VkRenderPass VULKAN_INTERNAL_FetchRenderPass(
|
|||
key.sampleCount = VK_SAMPLE_COUNT_1_BIT;
|
||||
if (numColorTargets > 0) {
|
||||
key.sampleCount = SDLToVK_SampleCount[((VulkanTextureContainer *)colorTargetInfos[0].texture)->header.info.sample_count];
|
||||
} else if (numColorTargets == 0 && depthStencilTargetInfo != NULL) {
|
||||
key.sampleCount = SDLToVK_SampleCount[((VulkanTextureContainer *)depthStencilTargetInfo->texture)->header.info.sample_count];
|
||||
}
|
||||
|
||||
key.numColorTargets = numColorTargets;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue