improvements
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user