blob: 1913174eaefddf7a9c14c7ee02b185d40b313e8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup gpu
*/
#include "gl_compute.hh"
#include "gl_debug.hh"
#include "glew-mx.h"
namespace blender::gpu {
void GLCompute::dispatch(int group_x_len, int group_y_len, int group_z_len)
{
GL_CHECK_RESOURCES("Compute");
GLContext::get()->state_manager->apply_state();
glDispatchCompute(group_x_len, group_y_len, group_z_len);
}
} // namespace blender::gpu
|