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

15_hello_triangle.cpp does not draw anything on the screen on MacOS #191

Closed
nelson-xia opened this issue Jun 22, 2020 · 2 comments
Closed

15_hello_triangle.cpp does not draw anything on the screen on MacOS #191

nelson-xia opened this issue Jun 22, 2020 · 2 comments

Comments

@nelson-xia
Copy link

@nelson-xia nelson-xia commented Jun 22, 2020

My Environment:
OS: MacOS 10.14.6
SDK: vulkansdk-macos-1.2.141.2
vert.spv from 09_shader_base.vert
frag.spv from 09_shader_base.frag

when I run the same codes on Linux, the colorful triangle is drawn correctly.

@jjpepper
Copy link

@jjpepper jjpepper commented Oct 16, 2020

I'm running it on windows10 and see a black screen too.
I've got these two validation errors:

validation layer: Validation Error: [ UNASSIGNED-CoreValidation-Shader-InputNotProduced ] Object 0: handle = 0x83d4ee000000000b, type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0x23e43bb7 | Vertex shader consumes input at location 0 but not provided
validation layer: Validation Error: [ UNASSIGNED-CoreValidation-Shader-InputNotProduced ] Object 0: handle = 0x83d4ee000000000b, type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0x23e43bb7 | Vertex shader consumes input at location 1 but not provided
@Overv
Copy link
Owner

@Overv Overv commented Oct 27, 2020

I cannot reproduce this problem on either Arch Linux or Windows 10 (NVIDIA GTX 1070 with latest drivers) and it seems like a strange error given that the shader doesn't have any inputs. Make sure that you've really compiled the right source file to the right output files.

@Overv Overv closed this Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.