mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-13 07:08:50 +01:00
[dxvk] Remove old resource binding methods
This commit is contained in:
parent
4cc559d690
commit
53519e2bd5
@ -151,13 +151,6 @@ namespace dxvk {
|
||||
VkShaderStageFlags stages,
|
||||
uint32_t slot,
|
||||
const DxvkBufferSlice& buffer) {
|
||||
bindResourceBuffer(slot, buffer);
|
||||
}
|
||||
|
||||
|
||||
void DxvkContext::bindResourceBuffer(
|
||||
uint32_t slot,
|
||||
const DxvkBufferSlice& buffer) {
|
||||
bool needsUpdate = !m_rc[slot].bufferSlice.matchesBuffer(buffer);
|
||||
|
||||
if (likely(needsUpdate))
|
||||
@ -184,14 +177,6 @@ namespace dxvk {
|
||||
uint32_t slot,
|
||||
const Rc<DxvkImageView>& imageView,
|
||||
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].bufferView = bufferView;
|
||||
m_rc[slot].bufferSlice = bufferView != nullptr
|
||||
@ -209,13 +194,6 @@ namespace dxvk {
|
||||
VkShaderStageFlags stages,
|
||||
uint32_t slot,
|
||||
const Rc<DxvkSampler>& sampler) {
|
||||
bindResourceSampler(slot, sampler);
|
||||
}
|
||||
|
||||
|
||||
void DxvkContext::bindResourceSampler(
|
||||
uint32_t slot,
|
||||
const Rc<DxvkSampler>& sampler) {
|
||||
m_rc[slot].sampler = sampler;
|
||||
m_rcTracked.clr(slot);
|
||||
|
||||
|
@ -118,10 +118,6 @@ namespace dxvk {
|
||||
uint32_t slot,
|
||||
const DxvkBufferSlice& buffer);
|
||||
|
||||
void bindResourceBuffer(
|
||||
uint32_t slot,
|
||||
const DxvkBufferSlice& buffer);
|
||||
|
||||
/**
|
||||
* \brief Binds image or buffer view
|
||||
*
|
||||
@ -139,11 +135,6 @@ namespace dxvk {
|
||||
const Rc<DxvkImageView>& imageView,
|
||||
const Rc<DxvkBufferView>& bufferView);
|
||||
|
||||
void bindResourceView(
|
||||
uint32_t slot,
|
||||
const Rc<DxvkImageView>& imageView,
|
||||
const Rc<DxvkBufferView>& bufferView);
|
||||
|
||||
/**
|
||||
* \brief Binds image sampler
|
||||
*
|
||||
@ -158,10 +149,6 @@ namespace dxvk {
|
||||
uint32_t slot,
|
||||
const Rc<DxvkSampler>& sampler);
|
||||
|
||||
void bindResourceSampler(
|
||||
uint32_t slot,
|
||||
const Rc<DxvkSampler>& sampler);
|
||||
|
||||
/**
|
||||
* \brief Binds a shader to a given state
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user