OGLplus (0.52.0) a C++ wrapper for OpenGL

computing.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_CONTEXT_COMPUTING_1201040722_HPP
14 #define OGLPLUS_CONTEXT_COMPUTING_1201040722_HPP
15 
16 #include <oglplus/glfunc.hpp>
17 
18 namespace oglplus {
19 namespace context {
20 
22 
25 class Computing
26 {
27 public:
28 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_4_3
29 
34  static void DispatchCompute(
35  GLuint num_groups_x,
36  GLuint num_groups_y,
37  GLuint num_groups_z
38  )
39  {
40  OGLPLUS_GLFUNC(DispatchCompute)(
41  num_groups_x,
42  num_groups_y,
43  num_groups_z
44  );
45  OGLPLUS_CHECK_SIMPLE(DispatchCompute);
46  }
47 
49 
53  static void DispatchComputeIndirect(GLintptr indirect)
54  {
55  OGLPLUS_GLFUNC(DispatchComputeIndirect)(indirect);
56  OGLPLUS_CHECK_SIMPLE(DispatchComputeIndirect);
57  }
58 #endif
59 };
60 
61 } // namespace context
62 } // namespace oglplus
63 
64 #endif // include guard
static void DispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z)
Launches several work groups.
Definition: computing.hpp:34
Helper macro for optional checking of availability of GL function.
static void DispatchComputeIndirect(GLintptr indirect)
Launches indirectly several work groups.
Definition: computing.hpp:53
Wrapper for the general-purpose-computing-related operations.
Definition: computing.hpp:25

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).