Skip to content

isf preview: example of how making it go through vk #1754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/plugins/score-plugin-gfx/Gfx/Filter/PreviewWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ ShaderPreviewWidget::ShaderPreviewWidget(const QString& path, QWidget* parent)
{
ShaderSource program = programFromFragmentShaderPath(path, {});

score::gfx::GraphicsApi api = score::gfx::GraphicsApi::OpenGL;
QShaderVersion version = QShaderVersion(330);
score::gfx::GraphicsApi api = score::gfx::GraphicsApi::Vulkan;
QShaderVersion version = QShaderVersion(120);
if(const auto& [processed, error]
= ProgramCache::instance().get(api, version, program);
bool(processed))
Expand All @@ -146,7 +146,7 @@ ShaderPreviewWidget::ShaderPreviewWidget(const Process::Preset& preset, QWidget*
ShaderSource program{vert, frag};

score::gfx::GraphicsApi api = score::gfx::GraphicsApi::Vulkan;
QShaderVersion version = QShaderVersion(100);
QShaderVersion version = QShaderVersion(120);
if(const auto& [processed, error]
= ProgramCache::instance().get(api, version, program);
bool(processed))
Expand Down Expand Up @@ -205,7 +205,7 @@ void ShaderPreviewWidget::setup()
i++;
}

m_graph.createAllRenderLists(score::gfx::GraphicsApi::OpenGL);
m_graph.createAllRenderLists(score::gfx::GraphicsApi::Vulkan);

// UI setup
auto lay = new QHBoxLayout(this);
Expand Down
Loading