Fix VulkanRenderState copying. Closes #1432

This commit is contained in:
baldurk
2019-07-01 17:03:38 +01:00
parent 2bb351fe0e
commit b1e6140747
2 changed files with 0 additions and 37 deletions
-35
View File
@@ -56,41 +56,6 @@ VulkanRenderState::VulkanRenderState(WrappedVulkan *driver, VulkanCreationInfo *
RDCEraseEl(conditionalRendering);
}
VulkanRenderState &VulkanRenderState::operator=(const VulkanRenderState &o)
{
views = o.views;
scissors = o.scissors;
lineWidth = o.lineWidth;
bias = o.bias;
memcpy(blendConst, o.blendConst, sizeof(blendConst));
mindepth = o.mindepth;
maxdepth = o.maxdepth;
front = o.front;
back = o.back;
sampleLocations = o.sampleLocations;
discardRectangles = o.discardRectangles;
memcpy(pushconsts, o.pushconsts, sizeof(pushconsts));
pushConstSize = o.pushConstSize;
renderPass = o.renderPass;
subpass = o.subpass;
framebuffer = o.framebuffer;
renderArea = o.renderArea;
compute = o.compute;
graphics = o.graphics;
ibuffer = o.ibuffer;
vbuffers = o.vbuffers;
xfbbuffers = o.xfbbuffers;
firstxfbcounter = o.firstxfbcounter;
xfbcounters = o.xfbcounters;
conditionalRendering = o.conditionalRendering;
return *this;
}
void VulkanRenderState::BeginRenderPassAndApplyState(VkCommandBuffer cmd, PipelineBinding binding)
{
RDCASSERT(renderPass != ResourceId());
-2
View File
@@ -54,8 +54,6 @@ struct VulkanRenderState
};
VulkanRenderState(WrappedVulkan *driver, VulkanCreationInfo *createInfo);
VulkanRenderState(const VulkanRenderState &o) { *this = o; }
VulkanRenderState &operator=(const VulkanRenderState &o);
void BeginRenderPassAndApplyState(VkCommandBuffer cmd, PipelineBinding binding);
void EndRenderPass(VkCommandBuffer cmd);