[d3d9] Use new resource view binding methods

This commit is contained in:
Philip Rebohle 2022-08-07 14:07:47 +02:00
parent 28ecf8268d
commit 1c1958be44
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 5 additions and 5 deletions

View File

@ -5889,7 +5889,7 @@ namespace dxvk {
cImageView = commonTex->GetSampleView(srgb)
](DxvkContext* ctx) mutable {
VkShaderStageFlags stage = VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT;
ctx->bindResourceView(stage, cSlot, std::move(cImageView), nullptr);
ctx->bindResourceImageView(stage, cSlot, std::move(cImageView));
});
}
@ -5905,7 +5905,7 @@ namespace dxvk {
DxsoBindingType::Image, uint32_t(shaderSampler.second));
VkShaderStageFlags stage = VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT;
ctx->bindResourceView(stage, slot, nullptr, nullptr);
ctx->bindResourceImageView(stage, slot, nullptr);
}
});
}
@ -7035,7 +7035,7 @@ namespace dxvk {
for (uint32_t i = 0; i < cSize; i++) {
auto samplerInfo = RemapStateSamplerShader(DWORD(i));
uint32_t slot = computeResourceSlotId(samplerInfo.first, DxsoBindingType::Image, uint32_t(samplerInfo.second));
ctx->bindResourceView(stage, slot, nullptr, nullptr);
ctx->bindResourceImageView(stage, slot, nullptr);
}
});

View File

@ -94,8 +94,8 @@ namespace dxvk {
auto tmpBufferView = m_device->createBufferView(srcSlice.buffer(), bufferViewInfo);
m_context->setSpecConstant(VK_PIPELINE_BIND_POINT_COMPUTE, 0, specConstantValue);
m_context->bindResourceView(VK_SHADER_STAGE_COMPUTE_BIT, BindingIds::Image, std::move(tmpImageView), nullptr);
m_context->bindResourceView(VK_SHADER_STAGE_COMPUTE_BIT, BindingIds::Buffer, nullptr, std::move(tmpBufferView));
m_context->bindResourceImageView(VK_SHADER_STAGE_COMPUTE_BIT, BindingIds::Image, std::move(tmpImageView));
m_context->bindResourceBufferView(VK_SHADER_STAGE_COMPUTE_BIT, BindingIds::Buffer, std::move(tmpBufferView));
m_context->bindShader(VK_SHADER_STAGE_COMPUTE_BIT, Rc<DxvkShader>(m_shaders[videoFormat.FormatType]));
m_context->pushConstants(0, sizeof(VkExtent2D), &imageExtent);
m_context->dispatch(