Cleanup: Vulkan: Remove unused code

Code is a left over and should not be used. It has been replaced by `VKResourceBinding`

Pull Request: https://projects.blender.org/blender/blender/pulls/130507
This commit is contained in:
Jeroen Bakker
2024-11-19 13:35:47 +01:00
parent 4018e52d30
commit 560c75e59c
2 changed files with 0 additions and 37 deletions

View File

@@ -353,30 +353,6 @@ const std::optional<VKDescriptorSet::Location> VKShaderInterface::descriptor_set
return resource_binding.location;
}
const VkAccessFlags VKShaderInterface::access_mask(
const shader::ShaderCreateInfo::Resource::BindType &bind_type, int binding) const
{
const ShaderInput *shader_input = shader_input_get(bind_type, binding);
if (shader_input == nullptr) {
return VK_ACCESS_NONE;
}
const VKResourceBinding &resource_binding = resource_binding_info(shader_input);
if (resource_binding.bind_type != bind_type) {
return VK_ACCESS_NONE;
}
return resource_binding.access_mask;
}
const VKImageViewArrayed VKShaderInterface::arrayed(
const shader::ShaderCreateInfo::Resource::BindType &bind_type, int binding) const
{
const ShaderInput *shader_input = shader_input_get(bind_type, binding);
if (shader_input == nullptr) {
return VKImageViewArrayed::DONT_CARE;
}
return resource_binding_info(shader_input).arrayed;
}
const ShaderInput *VKShaderInterface::shader_input_get(
const shader::ShaderCreateInfo::Resource &resource) const
{

View File

@@ -50,19 +50,6 @@ class VKShaderInterface : public ShaderInterface {
const std::optional<VKDescriptorSet::Location> descriptor_set_location(
const shader::ShaderCreateInfo::Resource::BindType &bind_type, int binding) const;
/**
* Get the access mask for a binding.
*
* Is used to build the correct resource accesses in the render graph (dispatch/draw nodes).
*
* Will return VK_ACCESS_NONE when binding isn't found or not compatible with the given bind
* type.
*/
const VkAccessFlags access_mask(const shader::ShaderCreateInfo::Resource::BindType &bind_type,
int binding) const;
const VKImageViewArrayed arrayed(const shader::ShaderCreateInfo::Resource::BindType &bind_type,
int binding) const;
/** Get the Layout of the shader. */
const VKPushConstants::Layout &push_constants_layout_get() const
{