Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_compute.cc
| Show All 13 Lines | |||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup gpu | * \ingroup gpu | ||||
| */ | */ | ||||
| #include "GPU_compute.h" | #include "GPU_compute.h" | ||||
| #include "GPU_context.h" | |||||
| #include "gpu_backend.hh" | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| void GPU_compute_dispatch(int groups_x_len, int groups_y_len, int groups_z_len) | void GPU_compute_dispatch(GPUShader *shader, int groups_x_len, int groups_y_len, int groups_z_len) | ||||
| { | { | ||||
| GPUContext &gpu_context = *GPU_context_active_get(); | blender::gpu::GPUBackend &gpu_backend = *blender::gpu::GPUBackend::get(); | ||||
| GPU_shader_bind(shader); | |||||
| gpu_backend.compute_dispatch(groups_x_len, groups_y_len, groups_z_len); | |||||
| } | } | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||