Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_shader.c
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
| } e_data = {{NULL}}; | } e_data = {{NULL}}; | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Hair refinement | /** \name Hair refinement | ||||
| * \{ */ | * \{ */ | ||||
| static GPUShader *hair_refine_shader_compute_create(ParticleRefineShader UNUSED(refinement)) | static GPUShader *hair_refine_shader_compute_create(ParticleRefineShader UNUSED(refinement)) | ||||
| { | { | ||||
| GPUShader *sh = NULL; | return GPU_shader_create_from_info_name("draw_hair_refine_compute"); | ||||
| sh = GPU_shader_create_compute(datatoc_common_hair_refine_comp_glsl, | |||||
| datatoc_common_hair_lib_glsl, | |||||
| "#define HAIR_PHASE_SUBDIV\n", | |||||
| __func__); | |||||
| return sh; | |||||
| } | } | ||||
| static GPUShader *hair_refine_shader_transform_feedback_create( | static GPUShader *hair_refine_shader_transform_feedback_create( | ||||
| ParticleRefineShader UNUSED(refinement)) | ParticleRefineShader UNUSED(refinement)) | ||||
| { | { | ||||
| GPUShader *sh = NULL; | GPUShader *sh = NULL; | ||||
| char *shader_src = BLI_string_joinN(datatoc_common_hair_lib_glsl, | char *shader_src = BLI_string_joinN(datatoc_common_hair_lib_glsl, | ||||
| ▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines | |||||