Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::ImmutableSamplerDesc Struct Reference

Immutable sampler description. More...

#include <PipelineResourceSignature.h>

Public Attributes

SHADER_TYPE ShaderStages = SHADER_TYPE_UNKNOWN
 Shader stages that this immutable sampler applies to. More than one shader stage can be specified.
 
const Char * SamplerOrTextureName = nullptr
 
struct SamplerDesc Desc
 Sampler description.
 

Detailed Description

Immutable sampler description.

An immutable sampler is compiled into the pipeline state and can't be changed. It is generally more efficient than a regular sampler and should be used whenever possible.

Member Data Documentation

◆ SamplerOrTextureName

const Char* Diligent::ImmutableSamplerDesc::SamplerOrTextureName = nullptr

The name of the sampler itself or the name of the texture variable that this immutable sampler is assigned to if combined texture samplers are used.