dawn-cmake/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.msl
Ben Clayton 4b60615eae test/tint: Fix e2e test generation for vec / mat
Where the intrinsic uses the fixed-dimension form of the types.

Change-Id: I1709382f762fe7394bbd88f428f09b15a1a8a643
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108642
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Ben Clayton <bclayton@google.com>
2022-11-04 17:06:03 +00:00

13 lines
429 B
Plaintext

#include <metal_stdlib>
using namespace metal;
void textureSample_4dd1bf(texturecube_array<float, access::sample> tint_symbol, sampler tint_symbol_1) {
float4 res = tint_symbol.sample(tint_symbol_1, float3(1.0f), 1);
}
fragment void fragment_main(texturecube_array<float, access::sample> tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) {
textureSample_4dd1bf(tint_symbol_2, tint_symbol_3);
return;
}