wisdom
Loading...
Searching...
No Matches
wis::DescriptorBindingDesc Struct Reference

Detailed Description

Descriptor binding description for RootSignature and Descriptor Storage creation. Description place in array determines binding index that this lane maps to. e.g. bindings[1] means on HLSL side this results in [[vk::binding(0,1)]]. All the bindings in Descriptor Storage are unbounded, array of these structures determine the presence and order of the bindings.

wis::DescriptorType binding_type;
uint32_t binding_space;
uint32_t space_overlap_count;
uint32_t binding_count;
};
DescriptorType
Type of the descriptor in the descriptor table.
Definition api.hpp:148
Descriptor binding description for RootSignature and Descriptor Storage creation. Description place i...
Definition api.hpp:2145

Definition at line 2145 of file api.hpp.

#include <api.hpp>

Public Attributes

wis::DescriptorType binding_type
 Binding type. Must be unique in array.
 
uint32_t binding_space
 Binding space number in HLSL.
 
uint32_t space_overlap_count
 Number of consecutive spaces this binding occupies. e.g. for binding_space = 1 and space_overlap_count = 3, HLSL binding will be :register(x0,space1), register(x0,space2), register(x0,space3) This is useful for binding multiple resource types to the same register array in HLSL.
 
uint32_t binding_count
 How many bindings should be allocated. Affects only the count of descriptors allocated in the descriptor heap, Root Signature always receives unbounded array with max amount of 4096 registers.
 

Data Members

◆ binding_count

uint32_t wis::DescriptorBindingDesc::binding_count

How many bindings should be allocated. Affects only the count of descriptors allocated in the descriptor heap, Root Signature always receives unbounded array with max amount of 4096 registers.

Definition at line 2158 of file api.hpp.

◆ binding_space

uint32_t wis::DescriptorBindingDesc::binding_space

Binding space number in HLSL.

Definition at line 2147 of file api.hpp.

◆ binding_type

wis::DescriptorType wis::DescriptorBindingDesc::binding_type

Binding type. Must be unique in array.

Definition at line 2146 of file api.hpp.

◆ space_overlap_count

uint32_t wis::DescriptorBindingDesc::space_overlap_count

Number of consecutive spaces this binding occupies. e.g. for binding_space = 1 and space_overlap_count = 3, HLSL binding will be :register(x0,space1), register(x0,space2), register(x0,space3) This is useful for binding multiple resource types to the same register array in HLSL.

Definition at line 2153 of file api.hpp.


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