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

Describes shader variable. More...

#include <PipelineState.h>

Public Member Functions

bool operator== (const ShaderResourceVariableDesc &RHS) const noexcept
 Comparison operator tests if two structures are equivalent.
 

Public Attributes

const Char * Name = nullptr
 Shader variable name.
 
SHADER_TYPE ShaderStages = SHADER_TYPE_UNKNOWN
 Shader stages this resources variable applies to.
 
SHADER_RESOURCE_VARIABLE_TYPE Type = SHADER_RESOURCE_VARIABLE_TYPE_STATIC
 Shader variable type. See Diligent::SHADER_RESOURCE_VARIABLE_TYPE for a list of allowed types.
 

Detailed Description

Describes shader variable.

Member Function Documentation

◆ operator==()

bool Diligent::ShaderResourceVariableDesc::operator== ( const ShaderResourceVariableDesc & RHS) const
inlinenoexcept

Comparison operator tests if two structures are equivalent.

Parameters
[in]RHS- reference to the structure to perform comparison with
Returns
  • True if all members of the two structures are equal.
  • False otherwise.

Member Data Documentation

◆ ShaderStages

SHADER_TYPE Diligent::ShaderResourceVariableDesc::ShaderStages = SHADER_TYPE_UNKNOWN

Shader stages this resources variable applies to.

If more than one shader stage is specified, the variable will be shared between these stages. Shader stages used by different variables with the same name must not overlap.