yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
14764896c
master
1// get-attribute-at-vertex.slang.hlsl 2 3//TEST_IGNORE_FILE: 4 5[ shader ( "pixel" )] 6void main ( 7 nointerpolationvector < float , 4 > color_0 : COLOR , 8vector < float , 3 > bary_0 : SV_BARYCENTRICS , 9out vector < float , 4 > result_0 : SV_TARGET ) 10{ 11result_0 = bary_0 . x * GetAttributeAtVertex ( color_0 , 0U ) 12+ bary_0 . y * GetAttributeAtVertex ( color_0 , 1U ) 13+ bary_0 . z * GetAttributeAtVertex ( color_0 , 2U ); 14}