Skip to content

Commit

Permalink
slang shaders works! nice!
Browse files Browse the repository at this point in the history
  • Loading branch information
leanid committed Jan 17, 2025
1 parent 418bebe commit a36c197
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 02-vulkan/08-vk-framebuffer-cmd-2/shaders/shader.frag.slang
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[[shader("fragment")]]
void main(float3 frag_color, out float4 out_color: SV_Target0)
{
// we need to add alpha value to result color
out_color = float4(frag_color, 1.0);
}
// slangc shader.frag.slang -target spirv -o shader.frag.slang.spv -profile spirv_1_0 -emit-spirv-directly -g2

0 comments on commit a36c197

Please sign in to comment.