dawn-cmake/test/tint/builtins
James Price 0e22bdbae7 tint/msl: Fix emission of private variables
In order to avoid declaring too many function parameters, we
previously modified this transform to redeclare private variables that
are only used inside a single function as function-scope
variables. This was broken as it meant that their values did not
persist across multiple calls to the same function.

Instead, wrap all private variables in a structure and pass it around
as a pointer.

Fixed: tint:1875
Change-Id: I83f5eb1071d57b9c6af56d6cf21b3a32c6e94260
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/124800
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: James Price <jrprice@google.com>
2023-03-20 21:46:01 +00:00
..
arrayLength
atomicStore tint/msl: Fix emission of private variables 2023-03-20 21:46:01 +00:00
atomics/from_gen tint/msl: Fix emission of private variables 2023-03-20 21:46:01 +00:00
extractBits
frexp tint/hlsl: fix frexp always returning positive values for fractional part 2023-03-16 21:31:15 +00:00
gen tint/hlsl: fix frexp always returning positive values for fractional part 2023-03-16 21:31:15 +00:00
insertBits
modf
textureDimensions tint/msl: Fix emission of private variables 2023-03-20 21:46:01 +00:00
textureGather tint/writer/glsl: Set default precision to highp 2023-03-09 19:58:23 +00:00
textureLoad tint/msl: Fix emission of private variables 2023-03-20 21:46:01 +00:00
textureNumSamples tint/msl: Fix emission of private variables 2023-03-20 21:46:01 +00:00
textureStore
workgroupUniformLoad
degrees.spvasm
degrees.spvasm.expected.dxc.hlsl
degrees.spvasm.expected.fxc.hlsl
degrees.spvasm.expected.glsl
degrees.spvasm.expected.msl
degrees.spvasm.expected.spvasm
degrees.spvasm.expected.wgsl
frexp.wgsl
frexp.wgsl.expected.dxc.hlsl
frexp.wgsl.expected.fxc.hlsl
frexp.wgsl.expected.glsl
frexp.wgsl.expected.msl
frexp.wgsl.expected.spvasm
frexp.wgsl.expected.wgsl
radians.spvasm
radians.spvasm.expected.dxc.hlsl
radians.spvasm.expected.fxc.hlsl
radians.spvasm.expected.glsl
radians.spvasm.expected.msl
radians.spvasm.expected.spvasm
radians.spvasm.expected.wgsl
repeated_use.wgsl
repeated_use.wgsl.expected.dxc.hlsl
repeated_use.wgsl.expected.fxc.hlsl
repeated_use.wgsl.expected.glsl
repeated_use.wgsl.expected.msl
repeated_use.wgsl.expected.spvasm
repeated_use.wgsl.expected.wgsl