Blender V5.0
blender::gpu::VKDescriptorSet::Location Struct Reference

#include <vk_descriptor_set.hh>

Public Member Functions

 Location ()=default
bool operator== (const Location &other) const
 operator uint32_t () const

Friends

class VKDescriptorSetTracker
class VKShaderInterface
struct VKResourceBinding

Detailed Description

Binding location of a resource in a descriptor set.

Locations and bindings are used for different reasons. In the Vulkan backend we use ShaderInput.location to store the descriptor set + the resource binding inside the descriptor set. To ease the development the VKDescriptorSet::Location will be used to hide this confusion.

NOTE: [future development] When supporting multiple descriptor sets the encoding/decoding can be centralized here. Location will then also contain the descriptor set index.

Definition at line 54 of file vk_descriptor_set.hh.

Constructor & Destructor Documentation

◆ Location()

blender::gpu::VKDescriptorSet::Location::Location ( )
default

Member Function Documentation

◆ operator uint32_t()

blender::gpu::VKDescriptorSet::Location::operator uint32_t ( ) const
inline

Definition at line 75 of file vk_descriptor_set.hh.

◆ operator==()

bool blender::gpu::VKDescriptorSet::Location::operator== ( const Location & other) const
inline

Definition at line 70 of file vk_descriptor_set.hh.

◆ VKDescriptorSetTracker

friend class VKDescriptorSetTracker
friend

Definition at line 55 of file vk_descriptor_set.hh.

References VKDescriptorSetTracker.

Referenced by VKDescriptorSetTracker.

◆ VKResourceBinding

friend struct VKResourceBinding
friend

Definition at line 57 of file vk_descriptor_set.hh.

References VKResourceBinding.

Referenced by VKResourceBinding.

◆ VKShaderInterface

friend class VKShaderInterface
friend

Definition at line 56 of file vk_descriptor_set.hh.

References VKShaderInterface.

Referenced by VKShaderInterface.


The documentation for this struct was generated from the following file: