Minor formatting updates.

This commit is contained in:
Chinmay Garde
2021-05-23 00:34:29 -07:00
committed by Dan Field
parent 9a22408736
commit 2303b9ee5b
2 changed files with 7 additions and 6 deletions

View File

@@ -25,12 +25,12 @@ struct {{camel_case(shader_name)}}{{camel_case(shader_stage)}}Info {
{% for stage_input in stage_inputs %}
// Stage input {{stage_input.name}}
static constexpr ShaderStageInput kInput{{camel_case(stage_input.name)}} = {
"{{stage_input.name}}", // name
{{stage_input.location}}u, // attribute location
{{stage_input.type.type_name}}, // type
{{stage_input.type.bit_width}}u, // bit width
{{stage_input.type.vec_size}}u, // vec size
{{stage_input.type.columns}}u // number of columns
"{{stage_input.name}}", // name
{{stage_input.location}}u, // attribute location
{{stage_input.type.type_name}}, // type
{{stage_input.type.bit_width}}u, // bit width of type
{{stage_input.type.vec_size}}u, // vec size
{{stage_input.type.columns}}u // number of columns
};
{% endfor %}
}; // struct {{camel_case(shader_name)}}{{camel_case(shader_stage)}}Info

View File

@@ -18,6 +18,7 @@ struct Position {
in vec3 vertexPosition;
in vec3 vertexColor;
in dvec4 hello;
in dmat4x2 hello12;
in uvec4 hello2;
out vec3 color;