|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <platform/graphics/compute.h>
Public Member Functions | |
| Compute (GraphicsDevice *graphicsDevice, const std::shared_ptr< Shader > &shader, std::string name="") | |
| uint32_t | dispatchX () const |
| uint32_t | dispatchY () const |
| uint32_t | dispatchZ () const |
| Texture * | getTextureParameter (const std::string &name) const |
| GraphicsDevice * | graphicsDevice () const |
| const std::string & | name () const |
| void | setParameter (const std::string &name, Texture *texture) |
| void | setupDispatch (uint32_t x, uint32_t y, uint32_t z) |
| const std::shared_ptr< Shader > & | shader () const |
| const std::unordered_map< std::string, Texture * > & | textureParameters () const |
A representation of a compute shader with the associated resources, that can be executed on the GPU.
| visutwin::canvas::Compute::Compute | ( | GraphicsDevice * | graphicsDevice, |
| const std::shared_ptr< Shader > & | shader, | ||
| std::string | name = "" ) |
Definition at line 14 of file compute.cpp.
References graphicsDevice(), name(), and shader().
|
inline |
|
inline |
|
inline |
| Texture * visutwin::canvas::Compute::getTextureParameter | ( | const std::string & | name | ) | const |
Definition at line 24 of file compute.cpp.
References name().
|
inline |
|
inline |
Definition at line 30 of file compute.h.
Referenced by Compute(), getTextureParameter(), and setParameter().
| void visutwin::canvas::Compute::setParameter | ( | const std::string & | name, |
| Texture * | texture ) |
Definition at line 19 of file compute.cpp.
References name().
| void visutwin::canvas::Compute::setupDispatch | ( | uint32_t | x, |
| uint32_t | y, | ||
| uint32_t | z ) |
Definition at line 30 of file compute.cpp.
|
inline |
|
inline |