Exemple #1
0
void bindAndSetUniforms(Shader& shader, TextureUnitContainer& cont, ImageOutport& port,
                        ImageType type) {
    bindAndSetUniforms(shader, cont, *port.getData(), port.getIdentifier(), type);
}
Exemple #2
0
void setShaderUniforms(Shader& shader, const ImageOutport& outport, const std::string samplerID) {
    setShaderUniforms(shader, *outport.getData(),
                      samplerID.empty() ? outport.getIdentifier() + "Parameters" : samplerID);
}