dawn-cmake/test/tint/builtins/gen/var
Stephen White 05d8b02b0f GLSL: implement host-visible memory padding.
Since GLSL ES does not support the offset= attribute, struct members
with explicit @align or @size attributes require adding explicit
padding members.  This in turn requires rewriting any constructor
calls to initialize the new padding to zero, handled in the same
transform.

Note that this is currently overly-verbose, and will add padding where
GLSL doesn't technically need it (e.g., padding a vec3 out to 16 bytes).

Bug: tint:1415
Change-Id: Ia9ba513066a0e84f4c43247fcbbe02f5fadd6630
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/101720
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-09-13 19:48:51 +00:00
..
abs tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
acos tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
acosh tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
all test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
any test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
arrayLength GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
asin tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
asinh tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
atan tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
atan2 tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
atanh tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
atomicAdd GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
atomicAnd GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
atomicCompareExchangeWeak GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
atomicExchange GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
atomicLoad GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
atomicMax GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
atomicMin GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
atomicOr GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
atomicStore GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
atomicSub GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
atomicXor GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
ceil tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
clamp tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
cos tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
cosh tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
countLeadingZeros test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
countOneBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
countTrailingZeros test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
cross tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
degrees tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
determinant tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
distance tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
dot tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
dot4I8Packed tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
dot4U8Packed tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
dpdx test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdxCoarse test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdxFine test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdy test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdyCoarse test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdyFine test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
exp tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
exp2 tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
extractBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
faceForward tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
firstLeadingBit test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
firstTrailingBit test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
floor tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
fma tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
fract tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
frexp tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
fwidth test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
fwidthCoarse test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
fwidthFine test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
insertBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
inverseSqrt tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
ldexp tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
length tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
log tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
log2 tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
max tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
min tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
mix tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
modf tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
normalize tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
pack2x16float test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack2x16snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack2x16unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack4x8snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack4x8unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pow tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
radians tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
reflect tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
refract tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
reverseBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
round tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
select tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
sign tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
sin tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
sinh tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
smoothstep tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
sqrt tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
step tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
storageBarrier test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
tan tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
tanh tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
textureDimensions GLSL: implement host-visible memory padding. 2022-09-13 19:48:51 +00:00
textureGather test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureGatherCompare test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureLoad GLSL: implement host-visible memory padding. 2022-09-13 19:48:51 +00:00
textureNumLayers test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureNumLevels test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureNumSamples test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSample test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleBias test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleCompare test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleCompareLevel test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleGrad test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleLevel GLSL: implement host-visible memory padding. 2022-09-13 19:48:51 +00:00
textureStore test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
transpose tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
trunc tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
unpack2x16float test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack2x16snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack2x16unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack4x8snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack4x8unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
workgroupBarrier test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00