mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 22:08:59 +01:00
[dxvk] Remove bindResourceView method
This commit is contained in:
parent
69b15b7fe6
commit
12c2d24d5c
@ -187,32 +187,6 @@ namespace dxvk {
|
||||
m_descriptorState.dirtyBuffers(stages);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Binds image or buffer view
|
||||
*
|
||||
* Can be used for sampled images with a dedicated
|
||||
* sampler and for storage images, as well as for
|
||||
* uniform texel buffers and storage texel buffers.
|
||||
* \param [in] stages Shader stages that access the binding
|
||||
* \param [in] slot Resource binding slot
|
||||
* \param [in] imageView Image view to bind
|
||||
* \param [in] bufferView Buffer view to bind
|
||||
*/
|
||||
void bindResourceView(
|
||||
VkShaderStageFlags stages,
|
||||
uint32_t slot,
|
||||
Rc<DxvkImageView>&& imageView,
|
||||
Rc<DxvkBufferView>&& bufferView) {
|
||||
m_rc[slot].bufferSlice = bufferView != nullptr
|
||||
? bufferView->slice()
|
||||
: DxvkBufferSlice();
|
||||
m_rc[slot].bufferView = std::move(bufferView);
|
||||
m_rc[slot].imageView = std::move(imageView);
|
||||
m_rcTracked.clr(slot);
|
||||
|
||||
m_descriptorState.dirtyViews(stages);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Binds image view
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user