Commit c5e22223 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Also vertex shaders

Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa@rosenzweig.io>
parent aa27245c
......@@ -177,14 +177,17 @@ int main(int argc, char **argv)
.do_link = true,
};
if (argc != 2) {
printf("Must pass exactly one GLSL file\n");
if (argc != 3) {
printf("Must pass exactly two GLSL files\n");
exit(1);
}
prog = standalone_compile_shader(&options, 1, &argv[1]);
prog = standalone_compile_shader(&options, 2, &argv[1]);
prog->_LinkedShaders[MESA_SHADER_FRAGMENT]->Program->info.stage = MESA_SHADER_FRAGMENT;
nir = glsl_to_nir(prog, MESA_SHADER_FRAGMENT, &nir_options);
midgard_compile_shader_nir(nir);
nir = glsl_to_nir(prog, MESA_SHADER_VERTEX, &nir_options);
midgard_compile_shader_nir(nir);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment