Blender V4.3
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 51 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 72 of file vk_descriptor_set.hh.

◆ operator==()

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

Definition at line 67 of file vk_descriptor_set.hh.

Friends And Related Symbol Documentation

◆ VKDescriptorSetTracker

friend class VKDescriptorSetTracker
friend

Definition at line 52 of file vk_descriptor_set.hh.

◆ VKResourceBinding

friend struct VKResourceBinding
friend

Definition at line 54 of file vk_descriptor_set.hh.

◆ VKShaderInterface

friend class VKShaderInterface
friend

Definition at line 53 of file vk_descriptor_set.hh.


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