mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-18 22:54:15 +01:00
[dxvk] Use dynamic offsets for both graphics and compute pipelines
This commit is contained in:
parent
4b5ec1be3e
commit
db7a7fa4bc
@ -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(),
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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(),
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user