dawn-cmake/test/intrinsics/gen
James Price 0f1efe04c3 writer/msl: Fix texture intrinsic generation
Wrap the texture expression in parentheses when it has lower
precendence than the function call operator.

Cast integer coordinates to unsigned integers as required by MSL.

Fixed: tint:536
Change-Id: I957e6be3c51044959e25e0be96c2d2c65db18187
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/53962
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: James Price <jrprice@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-06-11 12:46:26 +00:00
..
abs tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
acos tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
all writer/hlsl: Emit vector-of-bool as boolN 2021-06-07 20:01:54 +00:00
any writer/hlsl: Emit vector-of-bool as boolN 2021-06-07 20:01:54 +00:00
arrayLength Add arrayLength() intrinsic that accepts a pointer argument 2021-06-10 18:43:04 +00:00
asin tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
atan tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
atan2 tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
ceil tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
clamp tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
cos tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
cosh tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
countOneBits tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
cross tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
determinant tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
distance tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
dot tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
dpdx [tools]: Generate intrinisic test cases 2021-06-03 11:26:17 +00:00
dpdxCoarse [tools]: Generate intrinisic test cases 2021-06-03 11:26:17 +00:00
dpdxFine [tools]: Generate intrinisic test cases 2021-06-03 11:26:17 +00:00
dpdy [tools]: Generate intrinisic test cases 2021-06-03 11:26:17 +00:00
dpdyCoarse [tools]: Generate intrinisic test cases 2021-06-03 11:26:17 +00:00
dpdyFine [tools]: Generate intrinisic test cases 2021-06-03 11:26:17 +00:00
exp tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
exp2 tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
faceForward tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
floor tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
fma tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
fract tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
frexp hlsl: Implement modf and frexp 2021-06-09 18:53:57 +00:00
fwidth tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
fwidthCoarse tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
fwidthFine tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
ignore writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
inverseSqrt tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
isFinite writer/hlsl: Emit vector-of-bool as boolN 2021-06-07 20:01:54 +00:00
isInf writer/hlsl: Emit vector-of-bool as boolN 2021-06-07 20:01:54 +00:00
isNan tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
isNormal tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
ldexp tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
length tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
log tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
log2 tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
max tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
min tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
mix tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
modf hlsl: Implement modf and frexp 2021-06-09 18:53:57 +00:00
normalize tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
pack2x16float tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
pack2x16snorm tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
pack2x16unorm tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
pack4x8snorm tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
pack4x8unorm tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
pow tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
reflect tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
reverseBits tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
round tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
select writer/spirv: Fix emission of select() 2021-06-07 20:01:54 +00:00
sign tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
sin tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
sinh tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
smoothStep tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
sqrt tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
step tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
storageBarrier [tools]: Generate intrinisic test cases 2021-06-03 11:26:17 +00:00
tan tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
tanh tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
textureDimensions writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
textureLoad writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
textureNumLayers writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
textureNumLevels writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
textureNumSamples writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
textureSample writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
textureSampleBias writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
textureSampleCompare writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
textureSampleGrad writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
textureSampleLevel writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
textureStore writer/msl: Fix texture intrinsic generation 2021-06-11 12:46:26 +00:00
transpose Add transpose intrinsic 2021-06-09 14:32:14 +00:00
trunc tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
unpack2x16float tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
unpack2x16snorm tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
unpack2x16unorm tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
unpack4x8snorm tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
unpack4x8unorm tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
workgroupBarrier [tools]: Generate intrinisic test cases 2021-06-03 11:26:17 +00:00