hello_triangle.hlsl

src/1.getting_started/2.1.hello_triangle/hello_triangle.hlsl · 9 lines

float4 vs_main(float3 position : POSITION) : SV_Position
{
    return float4(position, 1.0);
}

float4 ps_main() : SV_Target
{
    return float4(1.0, 0.5, 0.2, 1.0);
}
Part of masm64-dx11, LearnOpenGL's lessons rewritten for Direct3D 11 in x64 assembly. Licensed CC BY-NC 4.0, after LearnOpenGL by Joey de Vries.