yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
07b30c42
16.6.0
1// Test vec2 tessellation coordinate: the IO form should be a vec3, copied to a vec2 2// at the entry point boundary. 3 4struct ds_in_t 5{ 6float4 pos : POSITION ; 7float3 norm : TEXCOORD0 ; 8} ; 9 10struct pcf_in_t 11{ 12float flTessFactor [ 3 ] : SV_TessFactor ; 13float flInsideTessFactor : SV_InsideTessFactor ; 14} ; 15 16struct gs_in_t 17{ 18float4 pos : POSITION ; 19float3 norm : TEXCOORD0 ; 20} ; 21 22[ domain ( "isoline" )] 23gs_in_t main ( const OutputPatch < ds_in_t , 2 > i , float2 tesscoord : SV_DomainLocation , pcf_in_t pcf_data ) 24{ 25gs_in_t o ; 26 27o . pos = i [ 0 ] . pos + tesscoord . x ; 28o . norm = i [ 0 ] . norm + tesscoord . y ; 29 30return o ; 31}