mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
22 lines
429 B
C
22 lines
429 B
C
|
static const char triangle_hlsl[] =
|
||
|
"struct ps_in\n"
|
||
|
"{\n"
|
||
|
" float4 position : SV_POSITION;\n"
|
||
|
" float4 colour : COLOR;\n"
|
||
|
"};\n"
|
||
|
"\n"
|
||
|
"struct ps_in vs_main(float4 position : POSITION, float4 colour : COLOR)\n"
|
||
|
"{\n"
|
||
|
" struct ps_in o;\n"
|
||
|
"\n"
|
||
|
" o.position = position;\n"
|
||
|
" o.colour = colour;\n"
|
||
|
"\n"
|
||
|
" return o;\n"
|
||
|
"}\n"
|
||
|
"\n"
|
||
|
"float4 ps_main(struct ps_in i) : SV_TARGET\n"
|
||
|
"{\n"
|
||
|
" return i.colour;\n"
|
||
|
"}\n";
|