improvements

This commit is contained in:
2025-12-14 22:46:45 +02:00
parent 860ec0c422
commit 5d4c587bf2
5 changed files with 81 additions and 33 deletions

View File

@@ -1,16 +1,23 @@
#include "../vulkan_state.h"
#include "../commands.h"
#include "tier0/platform.h"
DECLARE_VULKAN_COMMAND(ClearColor)
{
AddDependency(pImage, DEPENDENCY_MODE_COLOR_CLEAR_DESTINATION);
CVkImage *pImg;
pImage = NULL;
if (pImage)
pImg = (CVkImage*)pImage;
if (ppImage)
pImg = (CVkImage*)*ppImage;
if (ppSwapchainImages)
pImg = (CVkImage*)ppSwapchainImages[iCurrentFrame];
if (pImg == NULL)
Plat_FatalErrorFunc("pImage and *ppSwapchainImages are NULL\n");
AddDependency(pImg, DEPENDENCY_MODE_IMAGE_DESTINATION);
VkClearColorValue color = {.float32 = {r,g,b,a}};
VkImageSubresourceRange range = {