Navigation
API > API/Developer > API/Developer/ShaderCompilerCommon
Container structure for all SPIR-V reflection resources and in/out attributes.
| Name | FSpirvReflectBindings |
| Type | struct |
| Header File | /Engine/Source/Developer/ShaderCompilerCommon/Public/SpirvReflectCommon.h |
| Include Path | #include "SpirvReflectCommon.h" |
Syntax
struct FSpirvReflectBindings
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AccelerationStructures | TArray< SpvReflectDescriptorBinding * > | SpirvReflectCommon.h | ||
| AtomicCounters | TSet< SpvReflectDescriptorBinding * > | SpirvReflectCommon.h | ||
| InputAttachments | TArray< SpvReflectDescriptorBinding * > | SpirvReflectCommon.h | ||
| InputAttributes | TArray< SpvReflectInterfaceVariable * > | SpirvReflectCommon.h | ||
| NumBindlessResources | int32 | SpirvReflectCommon.h | ||
| NumBindlessSamplers | int32 | SpirvReflectCommon.h | ||
| OutputAttributes | TArray< SpvReflectInterfaceVariable * > | SpirvReflectCommon.h | ||
| Samplers | TArray< SpvReflectDescriptorBinding * > | SpirvReflectCommon.h | ||
| SBufferSRVs | TArray< SpvReflectDescriptorBinding * > | SpirvReflectCommon.h | ||
| SBufferUAVs | TArray< SpvReflectDescriptorBinding * > | SpirvReflectCommon.h | ||
| TBufferSRVs | TArray< SpvReflectDescriptorBinding * > | SpirvReflectCommon.h | ||
| TBufferUAVs | TArray< SpvReflectDescriptorBinding * > | SpirvReflectCommon.h | ||
| TextureSRVs | TArray< SpvReflectDescriptorBinding * > | SpirvReflectCommon.h | ||
| TextureUAVs | TArray< SpvReflectDescriptorBinding * > | SpirvReflectCommon.h | ||
| UniformBuffers | TArray< SpvReflectDescriptorBinding * > | SpirvReflectCommon.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddDescriptorBinding
(
SpvReflectDescriptorBinding* InBinding |
Adds the specified descriptor binding to the corresponding container iff the descriptor is marked as being accessed. | SpirvReflectCommon.h | |
void AssignInputAttributeLocationsBySemanticIndex
(
spv_reflect::ShaderModule& SpirvReflection, |
Assigns the binding location for all input attributes by its semantic index if their name is equal to 'SemanticName'. | SpirvReflectCommon.h | |
void GatherDescriptorBindings
(
const spv_reflect::ShaderModule& SpirvReflection |
Gathers all descriptor bindings from the specified SPIRV-Reflect module. | SpirvReflectCommon.h | |
void GatherInputAttributes
(
const spv_reflect::ShaderModule& SpirvReflection |
Gathers all input interface variables from the specified SPIRV-Reflect module. | SpirvReflectCommon.h | |
void GatherOutputAttributes
(
const spv_reflect::ShaderModule& SpirvReflection |
Gathers all output interface variables from the specified SPIRV-Reflect module. | SpirvReflectCommon.h |