yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
9ec6b9168
master
1result code = -1 2standard error = { 3tests/diagnostics/variable-redeclaration.slang(14): error 30200: declaration of 'gA' conflicts with existing declaration 4static Texture2D gA; 5 ^~ 6tests/diagnostics/variable-redeclaration.slang(12): note: see previous declaration of 'gA' 7static int gA; 8 ^~ 9tests/diagnostics/variable-redeclaration.slang(44): error 30200: declaration of 'f' conflicts with existing declaration 10 float f; 11 ^ 12tests/diagnostics/variable-redeclaration.slang(43): note: see previous declaration of 'f' 13 int f; 14 ^ 15tests/diagnostics/variable-redeclaration.slang(51): error 30200: declaration of 'size' conflicts with existing declaration 16 float size) 17 ^~~~ 18tests/diagnostics/variable-redeclaration.slang(50): note: see previous declaration of 'size' 19 int size, 20 ^~~~ 21tests/diagnostics/variable-redeclaration.slang(14): error 30076: global variable cannot have opaque type. 22static Texture2D gA; 23 ^~ 24tests/diagnostics/variable-redeclaration.slang(14): note: do you intend to define a `uniform` parameter instead? 25static Texture2D gA; 26 ^~ 27tests/diagnostics/variable-redeclaration.slang(21): error 30200: declaration of 'y' conflicts with existing declaration 28 int y = x; 29 ^ 30tests/diagnostics/variable-redeclaration.slang(20): note: see previous declaration of 'y' 31 int y = x; 32 ^ 33tests/diagnostics/variable-redeclaration.slang(41): error 30200: declaration of 'f' conflicts with existing declaration 34struct S 35 ^ 36tests/diagnostics/variable-redeclaration.slang(41): note: see previous declaration of 'f' 37struct S 38 ^ 39tests/diagnostics/variable-redeclaration.slang(43): error 39999: ambiguous reference to 'f' 40 int f; 41 ^ 42tests/diagnostics/variable-redeclaration.slang(44): note 39999: candidate: float S.f 43 float f; 44 ^ 45tests/diagnostics/variable-redeclaration.slang(43): note 39999: candidate: int S.f 46 int f; 47 ^ 48tests/diagnostics/variable-redeclaration.slang(44): error 39999: ambiguous reference to 'f' 49 float f; 50 ^ 51tests/diagnostics/variable-redeclaration.slang(44): note 39999: candidate: float S.f 52 float f; 53 ^ 54tests/diagnostics/variable-redeclaration.slang(43): note 39999: candidate: int S.f 55 int f; 56 ^ 57tests/diagnostics/variable-redeclaration.slang(53): error 39999: ambiguous reference to 'size' 58 return size; 59 ^~~~ 60tests/diagnostics/variable-redeclaration.slang(51): note 39999: candidate: float size 61 float size) 62 ^~~~ 63tests/diagnostics/variable-redeclaration.slang(50): note 39999: candidate: int size 64 int size, 65 ^~~~ 66} 67standard output = { 68}