title: How to compile HLSL shaders with Vulkan?
body: <p>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:</p>
  
  <pre><code>float4 main(float2 pos : POSITIONT) : SV_POSITION
  {
      return float4(pos, 0, 1);
  }
  </code></pre>
  
  <p>Following <a href="https://vulkan-tutorial.com/en/Drawing_a_triangle/Graphics_pipeline_basics/Shader_modules" rel="nofollow noreferrer">this tutorial</a> i try to compile: <code>glslc.exe VertexShader.hlsl -o vertex.spv</code></p>
  
  <p>And i get this error: <code>glslc: error: 'VertexShader.hlsl': .hlsl file encountered but no -fshader-stage specified ahead</code></p>
  
  <p>So, how to compile HLSL in Vulkan?</p>