mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 22:08:59 +01:00
[dxvk] Use new binding methods for swapchain blitter
This commit is contained in:
parent
77e7c7c6b8
commit
37337dd4a6
@ -180,7 +180,7 @@ namespace dxvk {
|
||||
renderTargets.color[0].view = dstView;
|
||||
renderTargets.color[0].layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
|
||||
|
||||
ctx->bindRenderTargets(renderTargets);
|
||||
ctx->bindRenderTargets(std::move(renderTargets));
|
||||
|
||||
VkExtent2D dstExtent = {
|
||||
dstView->imageInfo().extent.width,
|
||||
@ -191,14 +191,14 @@ namespace dxvk {
|
||||
else
|
||||
ctx->clearRenderTarget(dstView, VK_IMAGE_ASPECT_COLOR_BIT, VkClearValue());
|
||||
|
||||
ctx->bindResourceSampler(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Image, m_samplerPresent);
|
||||
ctx->bindResourceSampler(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Gamma, m_samplerGamma);
|
||||
ctx->bindResourceSampler(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Image, Rc<DxvkSampler>(m_samplerPresent));
|
||||
ctx->bindResourceSampler(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Gamma, Rc<DxvkSampler>(m_samplerGamma));
|
||||
|
||||
ctx->bindResourceView(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Image, srcView, nullptr);
|
||||
ctx->bindResourceView(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Gamma, m_gammaView, nullptr);
|
||||
ctx->bindResourceView(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Image, Rc<DxvkImageView>(srcView), nullptr);
|
||||
ctx->bindResourceView(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Gamma, Rc<DxvkImageView>(m_gammaView), nullptr);
|
||||
|
||||
ctx->bindShader(VK_SHADER_STAGE_VERTEX_BIT, m_vs);
|
||||
ctx->bindShader(VK_SHADER_STAGE_FRAGMENT_BIT, fs);
|
||||
ctx->bindShader(VK_SHADER_STAGE_VERTEX_BIT, Rc<DxvkShader>(m_vs));
|
||||
ctx->bindShader(VK_SHADER_STAGE_FRAGMENT_BIT, Rc<DxvkShader>(fs));
|
||||
|
||||
PresenterArgs args;
|
||||
args.srcOffset = srcRect.offset;
|
||||
|
Loading…
Reference in New Issue
Block a user