Skip to content
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

Shader objects, strange error with vertex input bindings #2251

Open
fknfilewalker opened this issue Jun 10, 2024 · 2 comments
Open

Shader objects, strange error with vertex input bindings #2251

fknfilewalker opened this issue Jun 10, 2024 · 2 comments

Comments

@fknfilewalker
Copy link

When I use a Shader Object with a shader having the following inputs:

layout(location = 0) in vec2 aPos;
layout(location = 1) in vec2 aUV;
layout(location = 2) in vec4 aColor;

I get the following error when creating the Shader Object.

[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 2):
Vertex attribute aPos(0) is missing from the vertex descriptor.
[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 2):
Vertex attribute aPos(0) is missing from the vertex descriptor.
[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 2):
Vertex attribute aPos(0) is missing from the vertex descriptor.

yes 3 times.

Code can be found in the following file.
https://github.com/fknfilewalker/evk/blob/main/src/imgui_backend.cpp
Target "imgui_rasterizer_triangle", though it requires a new llvm version e.g., from homebrew

@cdavis5e
Copy link
Collaborator

Based on this line, you appear to be using VK_EXT_vertex_input_dynamic_state, which we don't support. This extension is distinct from the VK_EXT_extended_dynamic_state extensions that we do support.

@fknfilewalker
Copy link
Author

How do you set this for a shader object then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants