diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-03-16 10:38:33 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-03-18 22:54:58 +0300 |
commit | 33b4e21820abb03cc7bfb90662f00f155fc71b01 (patch) | |
tree | f0a7d0ad95d40fcdeb6da6f46abc4afd8c4c2468 /source/blender/gpu | |
parent | 93bf17d9521025fe849bf705773de7bacc1dc01d (diff) |
Cleanup: SSBO: Rename ubo to ssbo in arguments.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/GPU_storage_buffer.h | 8 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_storage_buffer.cc | 22 |
2 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/gpu/GPU_storage_buffer.h b/source/blender/gpu/GPU_storage_buffer.h index f768181e826..e36f65ed1d9 100644 --- a/source/blender/gpu/GPU_storage_buffer.h +++ b/source/blender/gpu/GPU_storage_buffer.h @@ -48,12 +48,12 @@ GPUStorageBuf *GPU_storagebuf_create_ex(size_t size, #define GPU_storagebuf_create(size) \ GPU_storagebuf_create_ex(size, NULL, GPU_USAGE_DYNAMIC, __func__); -void GPU_storagebuf_free(GPUStorageBuf *ubo); +void GPU_storagebuf_free(GPUStorageBuf *ssbo); -void GPU_storagebuf_update(GPUStorageBuf *ubo, const void *data); +void GPU_storagebuf_update(GPUStorageBuf *ssbo, const void *data); -void GPU_storagebuf_bind(GPUStorageBuf *ubo, int slot); -void GPU_storagebuf_unbind(GPUStorageBuf *ubo); +void GPU_storagebuf_bind(GPUStorageBuf *ssbo, int slot); +void GPU_storagebuf_unbind(GPUStorageBuf *ssbo); void GPU_storagebuf_unbind_all(void); #ifdef __cplusplus diff --git a/source/blender/gpu/intern/gpu_storage_buffer.cc b/source/blender/gpu/intern/gpu_storage_buffer.cc index adbc71319b3..ad4d23e15d5 100644 --- a/source/blender/gpu/intern/gpu_storage_buffer.cc +++ b/source/blender/gpu/intern/gpu_storage_buffer.cc @@ -72,32 +72,32 @@ GPUStorageBuf *GPU_storagebuf_create_ex(size_t size, GPUUsageType usage, const char *name) { - StorageBuf *ubo = GPUBackend::get()->storagebuf_alloc(size, usage, name); + StorageBuf *ssbo = GPUBackend::get()->storagebuf_alloc(size, usage, name); /* Direct init. */ if (data != nullptr) { - ubo->update(data); + ssbo->update(data); } - return wrap(ubo); + return wrap(ssbo); } -void GPU_storagebuf_free(GPUStorageBuf *ubo) +void GPU_storagebuf_free(GPUStorageBuf *ssbo) { - delete unwrap(ubo); + delete unwrap(ssbo); } -void GPU_storagebuf_update(GPUStorageBuf *ubo, const void *data) +void GPU_storagebuf_update(GPUStorageBuf *ssbo, const void *data) { - unwrap(ubo)->update(data); + unwrap(ssbo)->update(data); } -void GPU_storagebuf_bind(GPUStorageBuf *ubo, int slot) +void GPU_storagebuf_bind(GPUStorageBuf *ssbo, int slot) { - unwrap(ubo)->bind(slot); + unwrap(ssbo)->bind(slot); } -void GPU_storagebuf_unbind(GPUStorageBuf *ubo) +void GPU_storagebuf_unbind(GPUStorageBuf *ssbo) { - unwrap(ubo)->unbind(); + unwrap(ssbo)->unbind(); } void GPU_storagebuf_unbind_all() |