1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-13 16:08:50 +01:00

[dxvk] Remove old resource binding methods

This commit is contained in:
Philip Rebohle 2022-06-02 20:04:12 +02:00
parent 4cc559d690
commit 53519e2bd5
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 0 additions and 35 deletions

View File

@ -151,13 +151,6 @@ namespace dxvk {
VkShaderStageFlags stages, VkShaderStageFlags stages,
uint32_t slot, uint32_t slot,
const DxvkBufferSlice& buffer) { const DxvkBufferSlice& buffer) {
bindResourceBuffer(slot, buffer);
}
void DxvkContext::bindResourceBuffer(
uint32_t slot,
const DxvkBufferSlice& buffer) {
bool needsUpdate = !m_rc[slot].bufferSlice.matchesBuffer(buffer); bool needsUpdate = !m_rc[slot].bufferSlice.matchesBuffer(buffer);
if (likely(needsUpdate)) if (likely(needsUpdate))
@ -184,14 +177,6 @@ namespace dxvk {
uint32_t slot, uint32_t slot,
const Rc<DxvkImageView>& imageView, const Rc<DxvkImageView>& imageView,
const Rc<DxvkBufferView>& bufferView) { const Rc<DxvkBufferView>& bufferView) {
bindResourceView(slot, imageView, bufferView);
}
void DxvkContext::bindResourceView(
uint32_t slot,
const Rc<DxvkImageView>& imageView,
const Rc<DxvkBufferView>& bufferView) {
m_rc[slot].imageView = imageView; m_rc[slot].imageView = imageView;
m_rc[slot].bufferView = bufferView; m_rc[slot].bufferView = bufferView;
m_rc[slot].bufferSlice = bufferView != nullptr m_rc[slot].bufferSlice = bufferView != nullptr
@ -209,13 +194,6 @@ namespace dxvk {
VkShaderStageFlags stages, VkShaderStageFlags stages,
uint32_t slot, uint32_t slot,
const Rc<DxvkSampler>& sampler) { const Rc<DxvkSampler>& sampler) {
bindResourceSampler(slot, sampler);
}
void DxvkContext::bindResourceSampler(
uint32_t slot,
const Rc<DxvkSampler>& sampler) {
m_rc[slot].sampler = sampler; m_rc[slot].sampler = sampler;
m_rcTracked.clr(slot); m_rcTracked.clr(slot);

View File

@ -118,10 +118,6 @@ namespace dxvk {
uint32_t slot, uint32_t slot,
const DxvkBufferSlice& buffer); const DxvkBufferSlice& buffer);
void bindResourceBuffer(
uint32_t slot,
const DxvkBufferSlice& buffer);
/** /**
* \brief Binds image or buffer view * \brief Binds image or buffer view
* *
@ -139,11 +135,6 @@ namespace dxvk {
const Rc<DxvkImageView>& imageView, const Rc<DxvkImageView>& imageView,
const Rc<DxvkBufferView>& bufferView); const Rc<DxvkBufferView>& bufferView);
void bindResourceView(
uint32_t slot,
const Rc<DxvkImageView>& imageView,
const Rc<DxvkBufferView>& bufferView);
/** /**
* \brief Binds image sampler * \brief Binds image sampler
* *
@ -158,10 +149,6 @@ namespace dxvk {
uint32_t slot, uint32_t slot,
const Rc<DxvkSampler>& sampler); const Rc<DxvkSampler>& sampler);
void bindResourceSampler(
uint32_t slot,
const Rc<DxvkSampler>& sampler);
/** /**
* \brief Binds a shader to a given state * \brief Binds a shader to a given state
* *