diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-06-07 20:40:47 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-06-07 20:40:47 +0300 |
commit | 1962ae69b16196e211f083223802744782804f11 (patch) | |
tree | 1d3bfeb801b7ad34162bda6e30d653d7cd53a87a /source/blender/gpu | |
parent | 56f2293a51d8ec572325f2581c7decb3cf2f8419 (diff) |
Rename GPU_material_create_uniform_buffer > GPU_material_uniform_buffer_create
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/GPU_material.h | 2 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.c | 2 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_material.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/GPU_material.h b/source/blender/gpu/GPU_material.h index cddcb3a546e..152597331fa 100644 --- a/source/blender/gpu/GPU_material.h +++ b/source/blender/gpu/GPU_material.h @@ -260,7 +260,7 @@ struct ListBase *GPU_material_get_inputs(GPUMaterial *material); GPUMaterialStatus GPU_material_status(GPUMaterial *mat); struct GPUUniformBuffer *GPU_material_get_uniform_buffer(GPUMaterial *material); -void GPU_material_create_uniform_buffer(GPUMaterial *material, struct ListBase *inputs); +void GPU_material_uniform_buffer_create(GPUMaterial *material, ListBase *inputs); void GPU_material_uniform_buffer_tag_dirty(struct ListBase *gpumaterials); void GPU_material_vertex_attributes(GPUMaterial *material, diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c index 76ecf411143..0dd9d1f0908 100644 --- a/source/blender/gpu/intern/gpu_codegen.c +++ b/source/blender/gpu/intern/gpu_codegen.c @@ -672,7 +672,7 @@ static int codegen_process_uniforms_functions(GPUMaterial *material, DynStr *ds, /* Handle the UBO block separately. */ if ((material != NULL) && !BLI_listbase_is_empty(&ubo_inputs)) { - GPU_material_create_uniform_buffer(material, &ubo_inputs); + GPU_material_uniform_buffer_create(material, &ubo_inputs); /* Inputs are sorted */ BLI_dynstr_appendf(ds, "\nlayout (std140) uniform %s {\n", GPU_UBO_BLOCK_NAME); diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index aa58f4365de..d1681a16c48 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -209,7 +209,7 @@ GPUUniformBuffer *GPU_material_get_uniform_buffer(GPUMaterial *material) * Create dynamic UBO from parameters * \param ListBase of BLI_genericNodeN(GPUInput) */ -void GPU_material_create_uniform_buffer(GPUMaterial *material, ListBase *inputs) +void GPU_material_uniform_buffer_create(GPUMaterial *material, ListBase *inputs) { material->ubo = GPU_uniformbuffer_dynamic_create(inputs, NULL); } |