yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
46a4d98ba
master
1// precise-keyword.slang.glsl 2//TEST_IGNORE_FILE: 3 4#version 450 5 6layout (location = 0 ) 7out vec4 _S1 ; 8 9layout (location = 0 ) 10in vec2 _S2 ; 11 12void main () 13{ 14float _S3 = _S2 .x ; 15 16precise float z_0 ; 17 18if (_S3 > 0.00000000000000000000 ) 19 { 20z_0 = _S3 * _S2 .y + _S3 ; 21 } 22else 23 { 24float _S4 = _S2 .y ; 25z_0 = _S4 * _S3 + _S4 ; 26 } 27_S1 = vec4 (z_0 ); 28return ; 29}