I'm current learning Vulkan API, it's time to create pipeline, I chose HLSL because in the future I want to reuse shaders in DirectX and when I get an RTX GPU I intend to bring ray tracing, I'm new in HLSL, I wrote a simple vertex shader:
float4 main(float2 pos : POSITIONT) : SV_POSITION
{
return float4(pos, 0, 1);
}
Following this tutorial i try to compile: glslc.exe VertexShader.hlsl -o vertex.spv
And i get this error: glslc: error: 'VertexShader.hlsl': .hlsl file encountered but no -fshader-stage specified ahead
So, how to compile HLSL in Vulkan?