dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 1 | |
| 2 | int tint_div_i32(int lhs, int rhs) { |
Antonio Maiorano | d032c62 | 2024-09-19 18:20:54 +0000 | [diff] [blame] | 3 | return (lhs / ((((rhs == int(0)) | ((lhs == int(-2147483648)) & (rhs == int(-1))))) ? (int(1)) : (rhs))); |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 4 | } |
dan sinclair | 6931379 | 2024-06-13 20:35:21 +0000 | [diff] [blame] | 5 | |
dan sinclair | c69667d | 2024-06-18 13:22:34 +0000 | [diff] [blame] | 6 | void foo() { |
Antonio Maiorano | d032c62 | 2024-09-19 18:20:54 +0000 | [diff] [blame] | 7 | int a = int(0); |
dan sinclair | c69667d | 2024-06-18 13:22:34 +0000 | [diff] [blame] | 8 | float4 b = (0.0f).xxxx; |
| 9 | float2x2 c = float2x2((0.0f).xx, (0.0f).xx); |
Antonio Maiorano | d032c62 | 2024-09-19 18:20:54 +0000 | [diff] [blame] | 10 | a = tint_div_i32(a, int(2)); |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 11 | b = mul(float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx), b); |
dan sinclair | c69667d | 2024-06-18 13:22:34 +0000 | [diff] [blame] | 12 | c = (c * 2.0f); |
| 13 | } |
| 14 | |
| 15 | [numthreads(1, 1, 1)] |
| 16 | void unused_entry_point() { |
| 17 | } |
| 18 | |