[dxvk] Use dynamic offsets for both graphics and compute pipelines

This commit is contained in:
Philip Rebohle 2018-06-22 00:33:47 +02:00
parent 4b5ec1be3e
commit db7a7fa4bc
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
4 changed files with 12 additions and 4 deletions

View File

@ -25,6 +25,10 @@ namespace dxvk {
m_cache(cache) {
DxvkDescriptorSlotMapping slotMapping;
cs->defineResourceSlots(slotMapping);
slotMapping.makeDescriptorsDynamic(
device->options().maxNumDynamicUniformBuffers,
device->options().maxNumDynamicStorageBuffers);
m_layout = new DxvkPipelineLayout(m_vkd,
slotMapping.bindingCount(),

View File

@ -50,8 +50,8 @@ namespace dxvk {
* slots used by the pipeline.
* \returns Pipeline layout
*/
Rc<DxvkPipelineLayout> layout() const {
return m_layout;
DxvkPipelineLayout* layout() const {
return m_layout.ptr();
}
/**

View File

@ -73,6 +73,10 @@ namespace dxvk {
if (gs != nullptr) gs ->defineResourceSlots(slotMapping);
if (fs != nullptr) fs ->defineResourceSlots(slotMapping);
slotMapping.makeDescriptorsDynamic(
device->options().maxNumDynamicUniformBuffers,
device->options().maxNumDynamicStorageBuffers);
m_layout = new DxvkPipelineLayout(m_vkd,
slotMapping.bindingCount(),
slotMapping.bindingInfos(),

View File

@ -188,8 +188,8 @@ namespace dxvk {
* slots used by the pipeline.
* \returns Pipeline layout
*/
Rc<DxvkPipelineLayout> layout() const {
return m_layout;
DxvkPipelineLayout* layout() const {
return m_layout.ptr();
}
/**