mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 13:24:10 +01:00
[dxvk] Pass slot mapping to pipeline layout constructor
We're not getting the info from any other source anyway.
This commit is contained in:
parent
0224dbc371
commit
d5b2c2fd23
@ -31,9 +31,7 @@ namespace dxvk {
|
||||
m_pipeMgr->m_device->options().maxNumDynamicStorageBuffers);
|
||||
|
||||
m_layout = new DxvkPipelineLayout(m_vkd,
|
||||
m_slotMapping.bindingCount(),
|
||||
m_slotMapping.bindingInfos(),
|
||||
VK_PIPELINE_BIND_POINT_COMPUTE);
|
||||
m_slotMapping, VK_PIPELINE_BIND_POINT_COMPUTE);
|
||||
}
|
||||
|
||||
|
||||
|
@ -57,9 +57,7 @@ namespace dxvk {
|
||||
pipeMgr->m_device->options().maxNumDynamicStorageBuffers);
|
||||
|
||||
m_layout = new DxvkPipelineLayout(m_vkd,
|
||||
m_slotMapping.bindingCount(),
|
||||
m_slotMapping.bindingInfos(),
|
||||
VK_PIPELINE_BIND_POINT_GRAPHICS);
|
||||
m_slotMapping, VK_PIPELINE_BIND_POINT_GRAPHICS);
|
||||
|
||||
m_vsIn = vs != nullptr ? vs->interfaceSlots().inputSlots : 0;
|
||||
m_fsOut = fs != nullptr ? fs->interfaceSlots().outputSlots : 0;
|
||||
|
@ -79,10 +79,12 @@ namespace dxvk {
|
||||
|
||||
DxvkPipelineLayout::DxvkPipelineLayout(
|
||||
const Rc<vk::DeviceFn>& vkd,
|
||||
uint32_t bindingCount,
|
||||
const DxvkDescriptorSlot* bindingInfos,
|
||||
const DxvkDescriptorSlotMapping& slotMapping,
|
||||
VkPipelineBindPoint pipelineBindPoint)
|
||||
: m_vkd(vkd), m_bindingSlots(bindingCount) {
|
||||
: m_vkd(vkd), m_bindingSlots(slotMapping.bindingCount()) {
|
||||
|
||||
auto bindingCount = slotMapping.bindingCount();
|
||||
auto bindingInfos = slotMapping.bindingInfos();
|
||||
|
||||
for (uint32_t i = 0; i < bindingCount; i++)
|
||||
m_bindingSlots[i] = bindingInfos[i];
|
||||
|
@ -135,8 +135,7 @@ namespace dxvk {
|
||||
|
||||
DxvkPipelineLayout(
|
||||
const Rc<vk::DeviceFn>& vkd,
|
||||
uint32_t bindingCount,
|
||||
const DxvkDescriptorSlot* bindingInfos,
|
||||
const DxvkDescriptorSlotMapping& slotMapping,
|
||||
VkPipelineBindPoint pipelineBindPoint);
|
||||
|
||||
~DxvkPipelineLayout();
|
||||
|
Loading…
Reference in New Issue
Block a user