You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :
The text was updated successfully, but these errors were encountered:
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
changed the title
GlslTokenType.in, GlslTokenType.inout or GlslTokenType.out expected, got 'uniform'
Support for vulkan push_constant syntax
Jun 1, 2022
#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 :
The text was updated successfully, but these errors were encountered: