|
virtual MOUNTAIN_API void | LoadResources ()=0 |
|
MOUNTAIN_API void | Apply (Vector2i textureSize, bool_t synchronizeImageData) const |
| Applies this effect to the bound images. More...
|
|
Definition at line 10 of file effect.hpp.
◆ Apply()
MOUNTAIN_API void Mountain::Effect::Apply |
( |
Vector2i |
textureSize, |
|
|
bool_t |
synchronizeImageData |
|
) |
| const |
Applies this effect to the bound images.
- Parameters
-
textureSize | The texture size to give to the compute shader. The shader will be called once for each pixel of the given size. |
synchronizeImageData | Whether to synchronize the CPU image data with the modified GPU one. This effectively means that the CPU will wait for the compute shader to finish executing before returning from this function. If this is false , and you want to access the modified GPU image, you need to manually synchronize the GPU data afterward using Graphics::SynchronizeGpuData() with GpuDataSynchronizationFlags::ShaderImageAccess . |
The documentation for this class was generated from the following file: