0
0
mirror of https://gitlab.winehq.org/wine/vkd3d.git synced 2025-04-13 05:43:18 -07:00
Files
bin
crosslibs
demos
gitlab
include
libs
m4
programs
tests
hlsl
abs.shader_test
all.shader_test
alpha-test.shader_test
angle-unit.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-dimension.shader_test
array-parameters.shader_test
array-size-expr.shader_test
asfloat.shader_test
asint.shader_test
asuint.shader_test
attributes.shader_test
bitwise-assignment.shader_test
bitwise.shader_test
bool-cast.shader_test
bool-semantics.shader_test
calculate-lod.shader_test
cast-64-bit.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
ceil.shader_test
cf-cond-types.shader_test
clamp.shader_test
clip-distance.shader_test
clip-planes.shader_test
clip.shader_test
combined-samplers.shader_test
comma.shader_test
compute.shader_test
conditional.shader_test
const.shader_test
constructgswithso.shader_test
coverage.shader_test
cross.shader_test
d3dcolor-to-ubyte4.shader_test
ddxddy.shader_test
default-values.shader_test
depth-bounds.shader_test
depth-out.shader_test
determinant.shader_test
discard.shader_test
distance.shader_test
dot.shader_test
duplicate-modifiers.shader_test
early-depth-stencil.shader_test
effect-annotations-fx_2.shader_test
effect-annotations-fx_4.shader_test
effect-assignments-fx_5.shader_test
effect-compile.shader_test
effect-initial-values-fx_2.shader_test
effect-initial-values-fx_4.shader_test
effect-pass-states-fx_5.shader_test
effect-shader-objects-fx_2.shader_test
effect-shader-objects-fx_5.shader_test
effect-technique-fx_2.shader_test
effect-technique-fx_4.shader_test
effect-technique-fx_5.shader_test
effect-variables-fx_2.shader_test
effect-variables-fx_4.shader_test
effect-variables-fx_5.shader_test
entry-point-semantics.shader_test
exp.shader_test
expr-indexing.shader_test
f16tof32.shader_test
f32tof16.shader_test
faceforward.shader_test
ffp-point-size.shader_test
float-comparison.shader_test
floor.shader_test
fmod.shader_test
fog.shader_test
for.shader_test
frac.shader_test
function-cast.shader_test
function-overload.shader_test
function-return.shader_test
function.shader_test
fwidth.shader_test
fxgroup-syntax.shader_test
gather-offset.shader_test
gather.shader_test
geometry.shader_test
get-sample-pos.shader_test
getdimensions.shader_test
half.shader_test
hard-copy-prop.shader_test
hull-shader-attributes.shader_test
hull-shader-syntax.shader_test
initializer-flatten.shader_test
initializer-implicit-array.shader_test
initializer-invalid-arg-count.shader_test
initializer-local-array.shader_test
initializer-matrix.shader_test
initializer-multi.shader_test
initializer-nested.shader_test
initializer-numeric.shader_test
initializer-objects.shader_test
initializer-static-array.shader_test
initializer-struct.shader_test
instance-id.shader_test
interface-packing.shader_test
intrinsic-override.shader_test
invalid.shader_test
inverse-trig.shader_test
is-front-face.shader_test
ldexp.shader_test
length.shader_test
lerp.shader_test
lit.shader_test
load-level.shader_test
log.shader_test
logic-operations.shader_test
loop.shader_test
majority-pragma.shader_test
majority-syntax.shader_test
majority-typedef.shader_test
math.shader_test
matrix-indexing.shader_test
matrix-semantics.shader_test
max-min.shader_test
minimum-precision.shader_test
modf.shader_test
mul.shader_test
multiple-rt.shader_test
nested-arrays.shader_test
nointerpolation.shader_test
non-const-indexing.shader_test
normalize.shader_test
null.shader_test
numeric-constructor-truncation.shader_test
numeric-types.shader_test
numthreads.shader_test
object-field-offsets.shader_test
object-parameters.shader_test
object-references.shader_test
point-sprite.shader_test
pointer-cast.shader_test
pow.shader_test
precise-modifier.shader_test
rasteriser-ordered-views.shader_test
rcp.shader_test
reflect.shader_test
refract.shader_test
register-reservations-numeric.shader_test
register-reservations-profile.shader_test
register-reservations-resources.shader_test
register-reservations-space.shader_test
return-implicit-conversion.shader_test
return.shader_test
round.shader_test
rt-format-mismatch.shader_test
rt-get-sample-info.shader_test
sample-bias.shader_test
sample-cmp.shader_test
sample-grad.shader_test
sample-level.shader_test
sampler-offset.shader_test
sampler-state.shader_test
sampler.shader_test
saturate.shader_test
shade-mode.shader_test
shader-interstage-interface.shader_test
shader-point-size.shader_test
shape.shader_test
side-effects.shader_test
sign.shader_test
single-numeric-initializer.shader_test
sm1-const-allocation.shader_test
sm1-const-folding.shader_test
sm1-interstage-interface.shader_test
sm6-ternary.shader_test
sm6-uav-rwtexture.shader_test
smoothstep.shader_test
sqrt.shader_test
srv-buffers.shader_test
srv-byteaddressbuffer.shader_test
state-block-function-syntax.shader_test
state-block-syntax.shader_test
static-initializer.shader_test
step.shader_test
storage-qualifiers.shader_test
strings.shader_test
struct-array.shader_test
struct-assignment.shader_test
struct-inheritance.shader_test
struct-semantics.shader_test
switch.shader_test
swizzle-constant-prop.shader_test
swizzle-matrix.shader_test
swizzles.shader_test
ternary.shader_test
tessellation-patch-vars.shader_test
tessellation.shader_test
texture-load-offset.shader_test
texture-load-typed.shader_test
texture-load.shader_test
texture-ordering.shader_test
tgsm.shader_test
transpose.shader_test
trigonometry.shader_test
trunc.shader_test
type-names.shader_test
uav-atomics.shader_test
uav-counter.shader_test
uav-load.shader_test
uav-out-param.shader_test
uav-rwbuffer.shader_test
uav-rwbyteaddressbuffer.shader_test
uav-rwstructuredbuffer.shader_test
uav-rwtexture.shader_test
unbounded-array-5.1.shader_test
uniform-parameters.shader_test
uniform-semantics.shader_test
uninitialized-varyings.shader_test
unorm-snorm.shader_test
unroll.shader_test
unsigned.shader_test
vector-indexing-uniform.shader_test
vector-indexing.shader_test
vertex-shader-ops.shader_test
wave-ops-float.shader_test
wave-ops-int.shader_test
wave-ops-uint.shader_test
wave-reconvergence.shader_test
writemask-assignop-0.shader_test
writemask-assignop-1.shader_test
writemask-assignop-2.shader_test
writemask-assignop-3.shader_test
.gitignore
d3d12.c
d3d12_crosstest.h
d3d12_invalid_usage.c
d3d12_test_utils.h
driver.c
dxcompiler.idl
hlsl_d3d12.c
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
shader_runner.c
shader_runner.h
shader_runner_d3d11.c
shader_runner_d3d12.c
shader_runner_d3d9.c
shader_runner_gl.c
shader_runner_metal.m
shader_runner_vulkan.c
test-driver.sh
utils.h
vkd3d_api.c
vkd3d_common.c
vkd3d_shader_api.c
vulkan_procs.h
vulkan_utils.h
.editorconfig
.gitignore
.gitlab-ci.yml
.mailmap
ANNOUNCE
AUTHORS
COPYING
ChangeLog.md
Doxyfile.in
INSTALL
LICENSE
Makefile.am
README
autogen.sh
commits
configure.ac
vkd3d/tests/hlsl/gather.shader_test

116 lines
1.7 KiB
Plaintext
Raw Normal View History

[require]
shader model >= 4.1
[sampler 0]
filter linear linear linear
address clamp clamp clamp
[srv 0]
size (2d, 3, 3)
0.0 0.0 0.0 0.4 0.1 0.0 0.5 0.0 0.2 0.0 0.0 0.4
0.0 0.1 0.5 0.0 0.1 0.1 0.0 0.4 0.2 0.1 0.5 0.0
0.0 0.2 0.0 0.4 0.1 0.2 0.5 0.0 0.2 0.2 0.0 0.4
[pixel shader]
sampler s;
Texture2D t;
float4 main() : sv_target
{
return t.Gather(s, float2(0.2, 0.2));
}
[test]
todo(msl) draw quad
probe (0, 0) rgba (0.0, 0.1, 0.1, 0.0)
[pixel shader]
sampler s;
Texture2D t;
float4 main() : sv_target
{
return t.GatherRed(s, float2(0.6, 0.6), int2(0, 0));
}
[test]
todo(msl) draw quad
probe (0, 0) rgba (0.1, 0.2, 0.2, 0.1)
[require]
shader model >= 5.0
[pixel shader]
SamplerState s;
Texture2D t;
float4 main() : sv_target
{
return t.GatherGreen(s, float2(0.2, 0.2), int2(0, 0));
}
[test]
todo(msl) draw quad
probe (0, 0) rgba (0.1, 0.1, 0.0, 0.0)
[pixel shader]
SamplerState s;
Texture2D t;
float4 main() : sv_target
{
return t.GatherGreen(s, float2(0.8, 0.8));
}
[test]
todo(msl) draw quad
probe (0, 0) rgba (0.2, 0.2, 0.1, 0.1)
[pixel shader todo]
SamplerState s;
Texture2D t;
float4 main() : sv_target
{
return t.GatherGreen(s, float2(0.2, 0.2), int2(0, 0), int2(0, 0), int2(0, 0), int2(0, 0));
}
[test]
todo(sm<6) draw quad
probe (0, 0) rgba (0.1, 0.1, 0.0, 0.0)
[pixel shader]
SamplerState s;
Texture2D t;
float4 main() : sv_target
{
return t.GatherBlue(s, float2(0.2, 0.8), int2(0, 0));
}
[test]
todo(msl) draw quad
probe (0, 0) rgba (0.0, 0.5, 0.0, 0.5)
[pixel shader]
SamplerState s;
Texture2D t;
float4 main() : sv_target
{
return t.GatherAlpha(s, float2(0.2, 0.8), int2(0, 0));
}
[test]
todo(msl) draw quad
probe (0, 0) rgba (0.4, 0.0, 0.4, 0.0)