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

Support for vulkan push_constant syntax #3

Open
Ribosome2 opened this issue Jun 1, 2022 · 1 comment
Open

Support for vulkan push_constant syntax #3

Ribosome2 opened this issue Jun 1, 2022 · 1 comment
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@Ribosome2
Copy link

#version 450

layout (location = 0) in vec3 vPosition;
layout (location = 1) in vec3 vNormal;
layout (location = 2) in vec3 vColor;

layout (location = 0) out vec3 outColor;

//push constants block
layout( push_constant ) uniform constants
{
vec4 data;
mat4 render_matrix;
} PushConstants;

void main()
{
gl_Position = PushConstants.render_matrix * vec4(vPosition, 1.0f);
outColor = vColor;
}
//this is valid a valid shader that I can run run with vulkan ,
//but report error :

@LeeTeng2001
Copy link
Owner

hello, thank you for checking out this plugin, it doesn't have a good support for common Vulkan type glsl syntax yet, it'll be added in the next release in few weeks.

@LeeTeng2001 LeeTeng2001 changed the title GlslTokenType.in, GlslTokenType.inout or GlslTokenType.out expected, got 'uniform' Support for vulkan push_constant syntax Jun 1, 2022
@LeeTeng2001 LeeTeng2001 added bug Something isn't working enhancement New feature or request labels Jun 2, 2022
@LeeTeng2001 LeeTeng2001 added this to the v0.0.6 milestone Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants