2

を使用するglslc --targe-env="vulkan1.1" -fentry-point="mainColor" test.fragと、エラーが発生します

test.frag: error: Linking fragment stage: Missing entry point: Each stage requires one entry point 

test.frag コンテンツ:

#version 450

layout (location=0) in vec4 color;
layout (location=0) out vec4 fragColor;

void mainColor()
{
    fragColor = color;
}

void mainWhite()
{
    fragColor = vec4(1, 1, 1, 1);
}

私は何を間違っていますか?
このコンパイルエラーを修正するには?

4

1 に答える 1