Blender V4.3
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 201 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 208 of file mtl_shader_generator.hh.

Member Function Documentation

◆ operator==()

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

Definition at line 216 of file mtl_shader_generator.hh.

References array_elems, and is_array.

Member Data Documentation

◆ array_elems

int blender::gpu::MSLUniform::array_elems

Definition at line 205 of file mtl_shader_generator.hh.

Referenced by operator==().

◆ is_array

bool blender::gpu::MSLUniform::is_array

Definition at line 204 of file mtl_shader_generator.hh.

Referenced by operator==().

◆ name

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

Definition at line 203 of file mtl_shader_generator.hh.

◆ stage

ShaderStage blender::gpu::MSLUniform::stage

Definition at line 206 of file mtl_shader_generator.hh.

◆ type

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

Definition at line 202 of file mtl_shader_generator.hh.


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