Blender V5.3
blender::GPUMaterialAttribute Struct Reference

#include <GPU_material.hh>

Public Attributes

GPUMaterialAttribute * next
GPUMaterialAttribute * prev
int type
char name [68]
char input_name [12+1]
GPUType gputype
GPUDefaultValue default_value
int id
int users
bool is_default_color
bool is_hair_length
bool is_hair_intercept

Detailed Description

Definition at line 338 of file GPU_material.hh.

Member Data Documentation

◆ default_value

GPUDefaultValue blender::GPUMaterialAttribute::default_value

Definition at line 344 of file GPU_material.hh.

◆ gputype

GPUType blender::GPUMaterialAttribute::gputype

Definition at line 343 of file GPU_material.hh.

◆ id

int blender::GPUMaterialAttribute::id

◆ input_name

char blender::GPUMaterialAttribute::input_name[12+1]

◆ is_default_color

bool blender::GPUMaterialAttribute::is_default_color

If true, the corresponding attribute is the specified default color attribute on the mesh, if it exists. In that case the type and name data can vary per geometry, so it will not be valid here.

Definition at line 352 of file GPU_material.hh.

Referenced by blender::attr_prefix_get(), blender::GPU_attribute_default_color(), and blender::gpu_node_graph_add_attribute().

◆ is_hair_intercept

bool blender::GPUMaterialAttribute::is_hair_intercept

If true, the attribute is the intercept of hair particles and curves.

Definition at line 360 of file GPU_material.hh.

Referenced by blender::attr_prefix_get(), blender::gpu::shader::GPUCodegen::generate_attribs(), and blender::gpu_node_graph_add_attribute().

◆ is_hair_length

bool blender::GPUMaterialAttribute::is_hair_length

If true, the attribute is the length of hair particles and curves.

Definition at line 356 of file GPU_material.hh.

Referenced by blender::attr_prefix_get(), blender::gpu::shader::GPUCodegen::generate_attribs(), and blender::gpu_node_graph_add_attribute().

◆ name

char blender::GPUMaterialAttribute::name[68]

◆ next

GPUMaterialAttribute* blender::GPUMaterialAttribute::next

Definition at line 339 of file GPU_material.hh.

Referenced by blender::gpu_node_graph_add_attribute().

◆ prev

GPUMaterialAttribute * blender::GPUMaterialAttribute::prev

Definition at line 339 of file GPU_material.hh.

◆ type

◆ users

int blender::GPUMaterialAttribute::users

Definition at line 346 of file GPU_material.hh.

Referenced by blender::gpu_node_graph_add_attribute().


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