Navigation
API > API/Developer > API/Developer/ShaderCompilerCommon
References
| Module | ShaderCompilerCommon |
| Header | /Engine/Source/Developer/ShaderCompilerCommon/Public/SpirvReflectCommon.h |
| Include | #include "SpirvReflectCommon.h" |
Syntax
struct FSpirvReflectBindings
Remarks
Container structure for all SPIR-V reflection resources and in/out attributes.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< SpvReflectDescriptorBinding * > | AccelerationStructures | ||
| TSet< SpvReflectDescriptorBinding * > | AtomicCounters | ||
| TArray< SpvReflectDescriptorBinding * > | InputAttachments | ||
| TArray< SpvReflectInterfaceVariable * > | InputAttributes | ||
| TArray< SpvReflectInterfaceVariable * > | OutputAttributes | ||
| TArray< SpvReflectDescriptorBinding * > | Samplers | ||
| TArray< SpvReflectDescriptorBinding * > | SBufferSRVs | ||
| TArray< SpvReflectDescriptorBinding * > | SBufferUAVs | ||
| TArray< SpvReflectDescriptorBinding * > | TBufferSRVs | ||
| TArray< SpvReflectDescriptorBinding * > | TBufferUAVs | ||
| TArray< SpvReflectDescriptorBinding * > | TextureSRVs | ||
| TArray< SpvReflectDescriptorBinding * > | TextureUAVs | ||
| TArray< SpvReflectDescriptorBinding * > | UniformBuffers |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddDescriptorBinding
(
SpvReflectDescriptorBinding* InBinding |
Adds the specified descriptor binding to the corresponding container iff the descriptor is marked as being accessed. | |
| 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'. | |
| void | GatherDescriptorBindings
(
const spv_reflect::ShaderModule& SpirvReflection |
Gathers all descriptor bindings from the specified SPIRV-Reflect module. | |
| void | GatherInputAttributes
(
const spv_reflect::ShaderModule& SpirvReflection |
Gathers all input interface variables from the specified SPIRV-Reflect module. | |
| void | GatherOutputAttributes
(
const spv_reflect::ShaderModule& SpirvReflection |
Gathers all output interface variables from the specified SPIRV-Reflect module. |