Blender V5.0
blender::gpu::MSLUniform Struct Reference

#include <mtl_shader_generator.hh>

Public Member Functions

 MSLUniform (shader::Type uniform_type, std::string uniform_name, bool is_array_type, uint32_t num_elems=1)
bool operator== (const MSLUniform &right) const

Public Attributes

shader::Type type
std::string name
bool is_array
int array_elems
ShaderStage stage

Detailed Description

Definition at line 130 of file mtl_shader_generator.hh.

Constructor & Destructor Documentation

◆ MSLUniform()

blender::gpu::MSLUniform::MSLUniform ( shader::Type uniform_type,
std::string uniform_name,
bool is_array_type,
uint32_t num_elems = 1 )
inline

Definition at line 137 of file mtl_shader_generator.hh.

References array_elems, is_array, name, and type.

Referenced by operator==().

Member Function Documentation

◆ operator==()

bool blender::gpu::MSLUniform::operator== ( const MSLUniform & right) const
inline

Definition at line 145 of file mtl_shader_generator.hh.

References array_elems, is_array, MSLUniform(), name, and type.

Member Data Documentation

◆ array_elems

int blender::gpu::MSLUniform::array_elems

Definition at line 134 of file mtl_shader_generator.hh.

Referenced by MSLUniform(), and operator==().

◆ is_array

bool blender::gpu::MSLUniform::is_array

Definition at line 133 of file mtl_shader_generator.hh.

Referenced by MSLUniform(), and operator==().

◆ name

std::string blender::gpu::MSLUniform::name

Definition at line 132 of file mtl_shader_generator.hh.

Referenced by MSLUniform(), and operator==().

◆ stage

ShaderStage blender::gpu::MSLUniform::stage

Definition at line 135 of file mtl_shader_generator.hh.

◆ type

shader::Type blender::gpu::MSLUniform::type

Definition at line 131 of file mtl_shader_generator.hh.

Referenced by MSLUniform(), and operator==().


The documentation for this struct was generated from the following file: