Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_codegen.c
| Show First 20 Lines • Show All 640 Lines • ▼ Show 20 Lines | #endif | ||||
| return code; | return code; | ||||
| } | } | ||||
| static const char *attr_prefix_get(CustomDataType type) | static const char *attr_prefix_get(CustomDataType type) | ||||
| { | { | ||||
| switch (type) { | switch (type) { | ||||
| case CD_ORCO: | case CD_ORCO: | ||||
| return "orco"; | return "orco"; | ||||
| case CD_MTFACE: | |||||
| return "u"; | |||||
| case CD_TANGENT: | case CD_TANGENT: | ||||
| return "t"; | return "t"; | ||||
| case CD_MCOL: | |||||
| return "c"; | |||||
| case CD_PROP_COLOR: | |||||
| return "c"; | |||||
| case CD_AUTO_FROM_NAME: | case CD_AUTO_FROM_NAME: | ||||
| return "a"; | return "a"; | ||||
| case CD_HAIRLENGTH: | case CD_HAIRLENGTH: | ||||
| return "hl"; | return "hl"; | ||||
| default: | default: | ||||
| BLI_assert_msg(0, "GPUVertAttr Prefix type not found : This should not happen!"); | BLI_assert_msg(0, "GPUVertAttr Prefix type not found : This should not happen!"); | ||||
| return ""; | return ""; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 474 Lines • Show Last 20 Lines | |||||