Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_shader_interface.hh
| Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | switch (u) { | ||||
| case GPU_UNIFORM_ORCO: | case GPU_UNIFORM_ORCO: | ||||
| return "OrcoTexCoFactors"; | return "OrcoTexCoFactors"; | ||||
| case GPU_UNIFORM_CLIPPLANES: | case GPU_UNIFORM_CLIPPLANES: | ||||
| return "WorldClipPlanes"; | return "WorldClipPlanes"; | ||||
| case GPU_UNIFORM_COLOR: | case GPU_UNIFORM_COLOR: | ||||
| return "color"; | return "color"; | ||||
| case GPU_UNIFORM_BASE_INSTANCE: | case GPU_UNIFORM_BASE_INSTANCE: | ||||
| return "baseInstance"; | return "gpu_BaseInstance"; | ||||
| case GPU_UNIFORM_RESOURCE_CHUNK: | case GPU_UNIFORM_RESOURCE_CHUNK: | ||||
| return "resourceChunk"; | return "resourceChunk"; | ||||
| case GPU_UNIFORM_RESOURCE_ID: | case GPU_UNIFORM_RESOURCE_ID: | ||||
| return "resourceId"; | return "resourceId"; | ||||
| case GPU_UNIFORM_SRGB_TRANSFORM: | case GPU_UNIFORM_SRGB_TRANSFORM: | ||||
| return "srgbTarget"; | return "srgbTarget"; | ||||
| default: | default: | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| } | } | ||||
| inline const char *ShaderInterface::builtin_uniform_block_name(GPUUniformBlockBuiltin u) | inline const char *ShaderInterface::builtin_uniform_block_name(GPUUniformBlockBuiltin u) | ||||
| { | { | ||||
| switch (u) { | 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: | |||||
| return "drw_view"; | |||||
| case GPU_UNIFORM_BLOCK_DRW_MODEL: | |||||
| return "drw_matrices"; | |||||
| case GPU_UNIFORM_BLOCK_DRW_INFOS: | |||||
| return "drw_infos"; | |||||
| default: | default: | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| } | } | ||||
| /* Returns string length including '\0' terminator. */ | /* Returns string length including '\0' terminator. */ | ||||
| inline uint32_t ShaderInterface::set_input_name(ShaderInput *input, | inline uint32_t ShaderInterface::set_input_name(ShaderInput *input, | ||||
| char *name, | char *name, | ||||
| ▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines | |||||