FUShader
The FUShader class extends the Shader class to manage a fusion of multiple shaders across different devices. It provides methods to set and retrieve a device mask, track the number of fusion shaders, and access individual shaders within the fusion. This functionality is particularly useful for high-performance computing scenarios that require managing and interacting with shaders from multiple devices in parallel workflows.
#include <platform/TellusimShader.h>
Inheritance
- Inherits from Shader
Constructors
FUShader()
explicit FUShader(Array<Shader> shaders, bool owner = false)
Methods
Device mask.
void setMask(uint32_t mask)
uint32_t getMask() const
Fusion shaders.
uint32_t getNumShaders() const
const Shader getShader(uint32_t index) const
Shader getShader(uint32_t index)