mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-14 00:48:44 +01:00
[dxvk] Add shader stage parameter to binding methods
This commit is contained in:
parent
3751edbe0c
commit
10eabb34da
@ -147,6 +147,14 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void DxvkContext::bindResourceBuffer(
|
||||||
|
VkShaderStageFlags stages,
|
||||||
|
uint32_t slot,
|
||||||
|
const DxvkBufferSlice& buffer) {
|
||||||
|
bindResourceBuffer(slot, buffer);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void DxvkContext::bindResourceBuffer(
|
void DxvkContext::bindResourceBuffer(
|
||||||
uint32_t slot,
|
uint32_t slot,
|
||||||
const DxvkBufferSlice& buffer) {
|
const DxvkBufferSlice& buffer) {
|
||||||
@ -171,6 +179,15 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void DxvkContext::bindResourceView(
|
||||||
|
VkShaderStageFlags stages,
|
||||||
|
uint32_t slot,
|
||||||
|
const Rc<DxvkImageView>& imageView,
|
||||||
|
const Rc<DxvkBufferView>& bufferView) {
|
||||||
|
bindResourceView(slot, imageView, bufferView);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void DxvkContext::bindResourceView(
|
void DxvkContext::bindResourceView(
|
||||||
uint32_t slot,
|
uint32_t slot,
|
||||||
const Rc<DxvkImageView>& imageView,
|
const Rc<DxvkImageView>& imageView,
|
||||||
@ -188,6 +205,14 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void DxvkContext::bindResourceSampler(
|
||||||
|
VkShaderStageFlags stages,
|
||||||
|
uint32_t slot,
|
||||||
|
const Rc<DxvkSampler>& sampler) {
|
||||||
|
bindResourceSampler(slot, sampler);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void DxvkContext::bindResourceSampler(
|
void DxvkContext::bindResourceSampler(
|
||||||
uint32_t slot,
|
uint32_t slot,
|
||||||
const Rc<DxvkSampler>& sampler) {
|
const Rc<DxvkSampler>& sampler) {
|
||||||
|
@ -109,9 +109,15 @@ namespace dxvk {
|
|||||||
* \brief Binds buffer as a shader resource
|
* \brief Binds buffer as a shader resource
|
||||||
*
|
*
|
||||||
* Can be used for uniform and storage buffers.
|
* Can be used for uniform and storage buffers.
|
||||||
|
* \param [in] stages Shader stages that access the binding
|
||||||
* \param [in] slot Resource binding slot
|
* \param [in] slot Resource binding slot
|
||||||
* \param [in] buffer Buffer to bind
|
* \param [in] buffer Buffer to bind
|
||||||
*/
|
*/
|
||||||
|
void bindResourceBuffer(
|
||||||
|
VkShaderStageFlags stages,
|
||||||
|
uint32_t slot,
|
||||||
|
const DxvkBufferSlice& buffer);
|
||||||
|
|
||||||
void bindResourceBuffer(
|
void bindResourceBuffer(
|
||||||
uint32_t slot,
|
uint32_t slot,
|
||||||
const DxvkBufferSlice& buffer);
|
const DxvkBufferSlice& buffer);
|
||||||
@ -122,10 +128,17 @@ namespace dxvk {
|
|||||||
* Can be used for sampled images with a dedicated
|
* Can be used for sampled images with a dedicated
|
||||||
* sampler and for storage images, as well as for
|
* sampler and for storage images, as well as for
|
||||||
* uniform texel buffers and storage texel buffers.
|
* uniform texel buffers and storage texel buffers.
|
||||||
|
* \param [in] stages Shader stages that access the binding
|
||||||
* \param [in] slot Resource binding slot
|
* \param [in] slot Resource binding slot
|
||||||
* \param [in] imageView Image view to bind
|
* \param [in] imageView Image view to bind
|
||||||
* \param [in] bufferView Buffer view to bind
|
* \param [in] bufferView Buffer view to bind
|
||||||
*/
|
*/
|
||||||
|
void bindResourceView(
|
||||||
|
VkShaderStageFlags stages,
|
||||||
|
uint32_t slot,
|
||||||
|
const Rc<DxvkImageView>& imageView,
|
||||||
|
const Rc<DxvkBufferView>& bufferView);
|
||||||
|
|
||||||
void bindResourceView(
|
void bindResourceView(
|
||||||
uint32_t slot,
|
uint32_t slot,
|
||||||
const Rc<DxvkImageView>& imageView,
|
const Rc<DxvkImageView>& imageView,
|
||||||
@ -136,9 +149,15 @@ namespace dxvk {
|
|||||||
*
|
*
|
||||||
* Binds a sampler that can be used together with
|
* Binds a sampler that can be used together with
|
||||||
* an image in order to read from a texture.
|
* an image in order to read from a texture.
|
||||||
|
* \param [in] stages Shader stages that access the binding
|
||||||
* \param [in] slot Resource binding slot
|
* \param [in] slot Resource binding slot
|
||||||
* \param [in] sampler Sampler view to bind
|
* \param [in] sampler Sampler view to bind
|
||||||
*/
|
*/
|
||||||
|
void bindResourceSampler(
|
||||||
|
VkShaderStageFlags stages,
|
||||||
|
uint32_t slot,
|
||||||
|
const Rc<DxvkSampler>& sampler);
|
||||||
|
|
||||||
void bindResourceSampler(
|
void bindResourceSampler(
|
||||||
uint32_t slot,
|
uint32_t slot,
|
||||||
const Rc<DxvkSampler>& sampler);
|
const Rc<DxvkSampler>& sampler);
|
||||||
|
Loading…
Reference in New Issue
Block a user