Add GPUContext::SetBlendFactor

This commit is contained in:
Wojtek Figat
2023-02-01 11:07:48 +01:00
parent ab51ecddb4
commit 45a30990ba
9 changed files with 83 additions and 92 deletions

View File

@@ -966,6 +966,12 @@ void GPUContextVulkan::SetRenderTarget(GPUTextureView* depthBuffer, const Span<G
}
}
void GPUContextVulkan::SetBlendFactor(const Float4& value)
{
const auto cmdBuffer = _cmdBufferManager->GetCmdBuffer();
vkCmdSetBlendConstants(cmdBuffer->GetHandle(), value.Raw);
}
void GPUContextVulkan::ResetSR()
{
Platform::MemoryClear(_srHandles, sizeof(_srHandles));