FShaderParameterBindings

Stores all shader parameter bindings and their corresponding offset and size in the shader's parameters struct.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/Shader.h

Include

#include "Shader.h"

Syntax

class FShaderParameterBindings

Remarks

Stores all shader parameter bindings and their corresponding offset and size in the shader's parameters struct.

Variables

Name Description

Public variable

TArray< FResour...

 

GraphSRVs

Public variable

TArray< FResour...

 

GraphTextures

Public variable

TArray< FResour...

 

GraphUAVs

Public variable

TArray< FParame...

 

ParameterReferences

Public variable

TArray< FParame...

 

Parameters

Public variable

uint16

 

RootParameterBufferIndex

Buffer index of FShaderParametersMetadata::kRootUniformBufferBindingName.

Public variable

TArray< FResour...

 

Samplers

Public variable

TArray< FResour...

 

SRVs

Public variable

TArray< FResour...

 

Textures

Public variable

TArray< FResour...

 

UAVs

Functions

Name Description

Public function

void

 

BindForLegacyShaderParameters

(
    const FShader* Shader,
    const FShaderParameterMap& Paramet...,
    const FShaderParametersMetadata& S...,
    bool bShouldBindEverything
)

Public function

void

 

BindForRootShaderParameters

(
    const FShader* Shader,
    const FShaderParameterMap& Paramet...
)

Classes

Constants

Name

Description

kInvalidBufferIndex

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback