0
0
mirror of https://gitlab.winehq.org/wine/vkd3d.git synced 2025-04-13 05:43:18 -07:00
Files
bin
crosslibs
demos
include
libs
m4
programs
tests
.gitignore
abs.shader_test
all.shader_test
any.shader_test
arithmetic-float-uniform.shader_test
arithmetic-float.shader_test
arithmetic-int-uniform.shader_test
arithmetic-int.shader_test
arithmetic-uint.shader_test
array-index-expr.shader_test
array-parameters.shader_test
asfloat.shader_test
asuint.shader_test
bitwise.shader_test
bool-semantics.shader_test
cast-broadcast.shader_test
cast-componentwise-compatible.shader_test
cast-componentwise-equal.shader_test
cast-to-float.shader_test
cast-to-half.shader_test
cast-to-int.shader_test
cast-to-uint.shader_test
cbuffer.shader_test
compute.shader_test
conditional.shader_test
d3d12.c
d3d12_crosstest.h
d3d12_invalid_usage.c
d3d12_test_utils.h
ddxddy.shader_test
distance.shader_test
entry-point-semantics.shader_test
exp.shader_test
expr-indexing.shader_test
floor.shader_test
fmod.shader_test
frac.shader_test
function-return.shader_test
hlsl-array-dimension.shader_test
hlsl-array-size-expr.shader_test
hlsl-attributes.shader_test
hlsl-bool-cast.shader_test
hlsl-clamp.shader_test
hlsl-comma.shader_test
hlsl-cross.shader_test
hlsl-d3dcolor-to-ubyte4.shader_test
hlsl-discard.shader_test
hlsl-dot.shader_test
hlsl-duplicate-modifiers.shader_test
hlsl-for.shader_test
hlsl-function-cast.shader_test
hlsl-function-overload.shader_test
hlsl-function.shader_test
hlsl-gather-offset.shader_test
hlsl-gather.shader_test
hlsl-initializer-flatten.shader_test
hlsl-initializer-implicit-array.shader_test
hlsl-initializer-invalid-arg-count.shader_test
hlsl-initializer-local-array.shader_test
hlsl-initializer-matrix.shader_test
hlsl-initializer-nested.shader_test
hlsl-initializer-numeric.shader_test
hlsl-initializer-objects.shader_test
hlsl-initializer-static-array.shader_test
hlsl-initializer-struct.shader_test
hlsl-intrinsic-override.shader_test
hlsl-invalid.shader_test
hlsl-is-front-face.shader_test
hlsl-ldexp.shader_test
hlsl-length.shader_test
hlsl-lerp.shader_test
hlsl-majority-pragma.shader_test
hlsl-majority-typedef.shader_test
hlsl-matrix-indexing.shader_test
hlsl-mul.shader_test
hlsl-nested-arrays.shader_test
hlsl-normalize.shader_test
hlsl-numeric-constructor-truncation.shader_test
hlsl-numeric-types.shader_test
hlsl-numthreads.shader_test
hlsl-return-implicit-conversion.shader_test
hlsl-shape.shader_test
hlsl-single-numeric-initializer.shader_test
hlsl-smoothstep.shader_test
hlsl-state-block-syntax.shader_test
hlsl-static-initializer.shader_test
hlsl-storage-qualifiers.shader_test
hlsl-struct-array.shader_test
hlsl-struct-assignment.shader_test
hlsl-struct-semantics.shader_test
hlsl-ternary.shader_test
hlsl-transpose.shader_test
hlsl-trunc.shader_test
hlsl-type-names.shader_test
hlsl-vector-indexing-uniform.shader_test
hlsl-vector-indexing.shader_test
hlsl_d3d12.c
lit.shader_test
load-level.shader_test
log.shader_test
logic-operations.shader_test
loop.shader_test
majority-syntax.shader_test
math.shader_test
matrix-semantics.shader_test
max.shader_test
minimum-precision.shader_test
multiple-rt.shader_test
nointerpolation.shader_test
object-field-offsets.shader_test
object-parameters.shader_test
object-references.shader_test
pow.shader_test
preproc-if-expr.shader_test
preproc-if.shader_test
preproc-ifdef.shader_test
preproc-invalid.shader_test
preproc-macro.shader_test
preproc-misc.shader_test
reflect.shader_test
register-reservations.shader_test
return.shader_test
round.shader_test
sample-bias.shader_test
sample-grad.shader_test
sample-level.shader_test
sampler-offset.shader_test
sampler.shader_test
saturate.shader_test
shader-interstage-interface.shader_test
shader_runner.c
shader_runner.h
shader_runner_d3d11.c
shader_runner_d3d12.c
shader_runner_d3d9.c
shader_runner_vulkan.c
side-effects.shader_test
sign.shader_test
sqrt.shader_test
step.shader_test
swizzle-constant-prop.shader_test
swizzles.shader_test
texture-load-offset.shader_test
texture-load-typed.shader_test
texture-load.shader_test
trigonometry.shader_test
uav-load.shader_test
uav-out-param.shader_test
uav-rwbuffer.shader_test
uav-rwstructuredbuffer.shader_test
uav-rwtexture.shader_test
utils.h
vkd3d_api.c
vkd3d_common.c
vkd3d_shader_api.c
vulkan_procs.h
writemask-assignop-0.shader_test
writemask-assignop-1.shader_test
writemask-assignop-2.shader_test
writemask-assignop-3.shader_test
.gitignore
ANNOUNCE
AUTHORS
COPYING
Doxyfile.in
INSTALL
LICENSE
Makefile.am
README
autogen.sh
configure.ac
vkd3d/tests/preproc-if-expr.shader_test

295 lines
2.5 KiB
Plaintext
Raw Normal View History

[preproc]
#if 1 == 1
pass
#endif
[preproc]
#if 1 == 0
fail
#endif
pass
[preproc]
#if 2
pass
#endif
[preproc]
#if -1
pass
#endif
[preproc]
#if-1
pass
#endif
[preproc]
#if 1 + 1 == 2
pass
#endif
[preproc]
#if 1 + 1 == 3
fail
#endif
pass
[preproc]
#if 8 - 3 == 5
pass
#endif
[preproc]
#if 2 * 2 == 4
pass
#endif
[preproc]
#if 2 * 2 == 4
pass
#endif
[preproc]
#if 8 / 3 == 2
pass
#endif
[preproc]
#if 0x12 == 18
pass
#endif
[preproc]
#if 012 == 10
pass
#endif
[preproc]
#if -1 == 0xfffffff
fail
#elif -1 == 0xffffffff
pass
#endif
[preproc]
#if -1 == 0xefffffffel
fail
#elif -1 == 0xeffffffffl
pass
#endif
[preproc]
#if (-1 == 4294967295l) && (-1 == 8589934591l) && (1 == 4294967297l)
pass
#endif
[preproc]
#if (-1ul == 4294967295ul) && (-1ul == 8589934591ul) && (1ul == 4294967297ul)
pass
#endif
[preproc]
#if (-1lu == 4294967295lu) && (-1lu == 8589934591lu) && (1lu == 4294967297lu)
pass
#endif
[preproc]
#if 36893488147419103233 == 1
pass
#endif
[preproc]
#if 2u == 2
pass
#else
fail
#endif
[preproc]
#if 2l == 2
pass
#else
fail
#endif
[preproc]
#if 2Ul == 2
pass
#else
fail
#endif
[preproc]
#if 2uL == 2
pass
#else
fail
#endif
[preproc]
#if 012lu == 10
pass
#endif
[preproc]
/* All math is done using unsigned 32-bit integers. */
#if 8 / -3 == 2
fail
#elif 8 / -3 == 3
fail
#elif 8 / -3 == -2
fail
#elif 8 / -3 == -3
fail
#elif 8 / -3 == 0
pass
#endif
[preproc]
#if -8 / 3 == 2
fail
#elif -8 / 3 == 3
fail
#elif -8 / 3 == -2
fail
#elif -8 / 3 == -3
fail
#elif -8 / 3 == 1431655762
pass
#endif
[preproc]
#if 1 && 0
fail
#endif
pass
[preproc]
#if 0 && 1
fail
#endif
pass
[preproc]
#if 1 && 1
pass
#endif
[preproc]
#if 1 || 0
pass
#endif
[preproc]
#if 0 || 1
pass
#endif
[preproc]
#if 0 || 0
fail
#endif
pass
[preproc]
#if 1 != 1
fail
#elif 1 != 0
pass
#endif
[preproc]
#if 2 < 1
fail
#elif 2 < 2
fail
#elif 1 < 2
pass
#endif
[preproc]
#if 2 <= 1
fail
#elif (1 <= 1) && (1 <= 2)
pass
#endif
[preproc]
#if 1 > 2
fail
#elif 2 > 2
fail
#elif 2 > 1
pass
#endif
[preproc]
#if 1 >= 2
fail
#elif (1 >= 1) && (2 >= 1)
pass
#endif
[preproc]
#if (2 == 2) == 1
pass
#endif
[preproc]
#if ((!0) == 1) && ((!1) == 0) && ((!2) == 0)
pass
#endif
[preproc]
#if (0 ? 2 : 3) == 3
pass
#endif
[preproc]
#if (1 ? 2 : 3) == 2
pass
#endif
[preproc]
#if (6 & 3) == 2
pass
#endif
[preproc]
#if (6 | 3) == 7
pass
#endif
[preproc]
#if (6 ^ 3) == 5
pass
#endif
[preproc]
#if +1 == 1
pass
#endif
[preproc]
#if -(-1) == 1
pass
#endif
[preproc]
#if 2 + 3 * 5 == 17
pass
#endif
[preproc]
#if (2 + 3) * 5 == 25
pass
#endif
[preproc]
#if 0 \
< \
1
pass
#endif