mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-13 16:08:50 +01:00
[d3d9] Use new resource view binding methods
This commit is contained in:
parent
28ecf8268d
commit
1c1958be44
@ -5889,7 +5889,7 @@ namespace dxvk {
|
|||||||
cImageView = commonTex->GetSampleView(srgb)
|
cImageView = commonTex->GetSampleView(srgb)
|
||||||
](DxvkContext* ctx) mutable {
|
](DxvkContext* ctx) mutable {
|
||||||
VkShaderStageFlags stage = VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT;
|
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));
|
DxsoBindingType::Image, uint32_t(shaderSampler.second));
|
||||||
|
|
||||||
VkShaderStageFlags stage = VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT;
|
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++) {
|
for (uint32_t i = 0; i < cSize; i++) {
|
||||||
auto samplerInfo = RemapStateSamplerShader(DWORD(i));
|
auto samplerInfo = RemapStateSamplerShader(DWORD(i));
|
||||||
uint32_t slot = computeResourceSlotId(samplerInfo.first, DxsoBindingType::Image, uint32_t(samplerInfo.second));
|
uint32_t slot = computeResourceSlotId(samplerInfo.first, DxsoBindingType::Image, uint32_t(samplerInfo.second));
|
||||||
ctx->bindResourceView(stage, slot, nullptr, nullptr);
|
ctx->bindResourceImageView(stage, slot, nullptr);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -94,8 +94,8 @@ namespace dxvk {
|
|||||||
auto tmpBufferView = m_device->createBufferView(srcSlice.buffer(), bufferViewInfo);
|
auto tmpBufferView = m_device->createBufferView(srcSlice.buffer(), bufferViewInfo);
|
||||||
|
|
||||||
m_context->setSpecConstant(VK_PIPELINE_BIND_POINT_COMPUTE, 0, specConstantValue);
|
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->bindResourceImageView(VK_SHADER_STAGE_COMPUTE_BIT, BindingIds::Image, std::move(tmpImageView));
|
||||||
m_context->bindResourceView(VK_SHADER_STAGE_COMPUTE_BIT, BindingIds::Buffer, nullptr, std::move(tmpBufferView));
|
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->bindShader(VK_SHADER_STAGE_COMPUTE_BIT, Rc<DxvkShader>(m_shaders[videoFormat.FormatType]));
|
||||||
m_context->pushConstants(0, sizeof(VkExtent2D), &imageExtent);
|
m_context->pushConstants(0, sizeof(VkExtent2D), &imageExtent);
|
||||||
m_context->dispatch(
|
m_context->dispatch(
|
||||||
|
Loading…
Reference in New Issue
Block a user