Exemplo n.º 1
0
VideoShader* VideoMaterial::createShader() const
{
    DPTR_D(const VideoMaterial);
    VideoShader *shader = new VideoShader();
    const VideoFormat fmt(d.frame.format());
    shader->setVideoFormat(fmt);
    return shader;
}
Exemplo n.º 2
0
VideoShader* VideoMaterial::createShader() const
{
    DPTR_D(const VideoMaterial);
    VideoShader *shader = new VideoShader();
    const VideoFormat fmt(d.frame.format());
    shader->setVideoFormat(fmt);
    //resize texture locations to avoid access format later
    return shader;
}