clear is here, draw is not
This commit is contained in:
28
materialsystem/vulkan/commands/transfer.cpp
Normal file
28
materialsystem/vulkan/commands/transfer.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#include "../vulkan_state.h"
|
||||
#include "../commands.h"
|
||||
#include "materialsystem/imaterialsystem.h"
|
||||
#include "tier0/platform.h"
|
||||
#include "tier1/utlvector.h"
|
||||
|
||||
DECLARE_VULKAN_COMMAND(Blit)
|
||||
{
|
||||
CVkImage *pVkInputImage = (CVkImage*)VulkanGetObject(stInputImage, iCurrentFrame);
|
||||
CVkImage *pVkOutputImage = (CVkImage*)VulkanGetObject(stOutputImage, iCurrentFrame);
|
||||
VkImageBlit stBlit = {
|
||||
.srcSubresource = {
|
||||
.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
|
||||
.layerCount = 1,
|
||||
},
|
||||
.dstSubresource = {
|
||||
.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
|
||||
.layerCount = 1,
|
||||
},
|
||||
};
|
||||
stBlit.srcOffsets[0].x = iSrcMin[0];
|
||||
stBlit.srcOffsets[0].y = iSrcMin[1];
|
||||
stBlit.srcOffsets[0].z = iSrcMin[2];
|
||||
stBlit.srcOffsets[1].x = iSrcMax[0];
|
||||
stBlit.srcOffsets[1].y = iSrcMax[1];
|
||||
stBlit.srcOffsets[1].z = iSrcMax[2];
|
||||
vkCmdBlitImage(hCommandBuffer, pVkInputImage->m_image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, pVkOutputImage->m_image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, &stBlit, VK_FILTER_NEAREST)
|
||||
}
|
||||
Reference in New Issue
Block a user