KiCad PCB EDA Suite
Loading...
Searching...
No Matches
RHI_BIND_GROUP_LAYOUT_DESC Struct Reference

#include <rhi_bind_group.h>

Public Member Functions

bool Validate () const
 
bool IsCompatible (const RHI_BIND_GROUP_LAYOUT_DESC &aOther) const
 
const RHI_BINDING_ENTRY * Find (uint32_t aBinding) const
 

Public Attributes

RHI_BIND_FREQUENCY frequency = RHI_BIND_FREQUENCY::PER_FRAME
 
std::vector< RHI_BINDING_ENTRY > entries
 

Detailed Description

Definition at line 85 of file rhi_bind_group.h.

Member Function Documentation

◆ Find()

const RHI_BINDING_ENTRY * RHI_BIND_GROUP_LAYOUT_DESC::Find ( uint32_t aBinding) const
inline
Returns
nullptr when no entry has aBinding.

Definition at line 100 of file rhi_bind_group.h.

References RHI_BINDING_ENTRY::binding, and entries.

Referenced by IsCompatible().

◆ IsCompatible()

bool RHI_BIND_GROUP_LAYOUT_DESC::IsCompatible ( const RHI_BIND_GROUP_LAYOUT_DESC & aOther) const
Returns
true if both layouts declare the same bindings with the same types and stages.

Definition at line 52 of file rhi_bind_group.cpp.

References entries, Find(), RHI_BINDING_ENTRY::stages, and RHI_BINDING_ENTRY::type.

◆ Validate()

bool RHI_BIND_GROUP_LAYOUT_DESC::Validate ( ) const
Returns
false if a binding index repeats, an entry has no stages or the frequency is not a valid group index.

Definition at line 26 of file rhi_bind_group.cpp.

References entries, frequency, and RHI_MAX_BIND_GROUPS.

Referenced by RHI_VULKAN_DEVICE::CreateBindGroupLayout(), and RhiValidateComputeBindGroupLayout().

Member Data Documentation

◆ entries

◆ frequency

RHI_BIND_FREQUENCY RHI_BIND_GROUP_LAYOUT_DESC::frequency = RHI_BIND_FREQUENCY::PER_FRAME

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