yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
68f073b1
vulkan-sdk-1.4.357.0
1struct HullInputType 2{ 3float4 position : SV_Position ; 4} ; 5 6struct ConstantOutputType 7{ 8float edges [ 3 ] : SV_TessFactor ; 9float inside : SV_InsideTessFactor ; 10} ; 11struct EmptyStruct {} ; 12 13struct HullOutputType {} ; 14 15void blob ( InputPatch < HullInputType , 3 > patch ) 16{ 17} 18 19ConstantOutputType ColorPatchConstantFunction ( InputPatch < HullInputType , 3 > inputPatch , uint patchId : SV_PrimitiveID ) 20{ 21ConstantOutputType output ; 22 23// Set the tessellation factors for the three edges of the triangle. 24output . edges [ 0 ] = 2 ; 25output . edges [ 1 ] = 2 ; 26output . edges [ 2 ] = 2 ; 27 28// Set the tessellation factor for tessallating inside the triangle. 29output . inside = 2 ; 30 31return output ; 32} 33 34 35// Hull Shader 36[ domain ( "tri" )] 37[ partitioning ( "integer" )] 38[ outputtopology ( "triangle_cw" )] 39[ outputcontrolpoints ( 3 )] 40[ patchconstantfunc ( "ColorPatchConstantFunction" )] 41HullOutputType main ( EmptyStruct stage_input , InputPatch < HullInputType , 3 > patch , uint pointId : SV_OutputControlPointID , uint patchId : SV_PrimitiveID ) 42{ 43HullOutputType output ; 44blob ( patch ) ; 45 46return output ; 47} 48