Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_shader_interface.hh
| Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Lines | switch (u) { | ||||
| case GPU_UNIFORM_BLOCK_VIEW: | case GPU_UNIFORM_BLOCK_VIEW: | ||||
| return "viewBlock"; | return "viewBlock"; | ||||
| case GPU_UNIFORM_BLOCK_MODEL: | case GPU_UNIFORM_BLOCK_MODEL: | ||||
| return "modelBlock"; | return "modelBlock"; | ||||
| case GPU_UNIFORM_BLOCK_INFO: | case GPU_UNIFORM_BLOCK_INFO: | ||||
| return "infoBlock"; | return "infoBlock"; | ||||
| case GPU_UNIFORM_BLOCK_DRW_VIEW: | case GPU_UNIFORM_BLOCK_DRW_VIEW: | ||||
| return "drw_view"; | return "drw_view_"; | ||||
| case GPU_UNIFORM_BLOCK_DRW_MODEL: | case GPU_UNIFORM_BLOCK_DRW_MODEL: | ||||
| return "drw_matrices"; | return "drw_matrices"; | ||||
| case GPU_UNIFORM_BLOCK_DRW_INFOS: | case GPU_UNIFORM_BLOCK_DRW_INFOS: | ||||
| return "drw_infos"; | return "drw_infos"; | ||||
| case GPU_UNIFORM_BLOCK_DRW_CLIPPING: | case GPU_UNIFORM_BLOCK_DRW_CLIPPING: | ||||
| return "drw_clipping"; | return "drw_clipping_"; | ||||
| default: | default: | ||||
| return nullptr; | return nullptr; | ||||
| } | } | ||||
| } | } | ||||
| inline const char *ShaderInterface::builtin_storage_block_name(GPUStorageBufferBuiltin u) | inline const char *ShaderInterface::builtin_storage_block_name(GPUStorageBufferBuiltin u) | ||||
| { | { | ||||
| switch (u) { | switch (u) { | ||||
| ▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines | |||||