FSpirvReflectBindings

Container structure for all SPIR-V reflection resources and in/out attributes.

Windows
MacOS
Linux

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

Name Description

Public variable

TArray< SpvRefl...

 

AccelerationStructures

Public variable

TSet< SpvReflec...

 

AtomicCounters

Public variable

TArray< SpvRefl...

 

InputAttachments

Public variable

TArray< SpvRefl...

 

InputAttributes

Public variable

TArray< SpvRefl...

 

OutputAttributes

Public variable

TArray< SpvRefl...

 

Samplers

Public variable

TArray< SpvRefl...

 

SBufferSRVs

Public variable

TArray< SpvRefl...

 

SBufferUAVs

Public variable

TArray< SpvRefl...

 

TBufferSRVs

Public variable

TArray< SpvRefl...

 

TBufferUAVs

Public variable

TArray< SpvRefl...

 

TextureSRVs

Public variable

TArray< SpvRefl...

 

TextureUAVs

Public variable

TArray< SpvRefl...

 

UniformBuffers

Functions

Name Description

Public function

void

 

AddDescriptorBinding

(
    SpvReflectDescriptorBinding* I...
)

Adds the specified descriptor binding to the corresponding container iff the descriptor is marked as being accessed.

Public function

void

 

AssignInputAttributeLocationsBySemanticIndex

(
    spv_reflect::ShaderModule& SpirvRe...,
    const ANSICHAR* SemanticName
)

Assigns the binding location for all input attributes by its semantic index if their name is equal to 'SemanticName'.

Public function

void

 

GatherDescriptorBindings

(
    const spv_reflect::ShaderModule& S...
)

Gathers all descriptor bindings from the specified SPIRV-Reflect module.

Public function

void

 

GatherInputAttributes

(
    const spv_reflect::ShaderModule& S...
)

Gathers all input interface variables from the specified SPIRV-Reflect module.

Public function

void

 

GatherOutputAttributes

(
    const spv_reflect::ShaderModule& S...
)

Gathers all output interface variables from the specified SPIRV-Reflect module.