mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-24 14:05:53 +00:00
Implemented for all readers and writers. Cleaned up some verbose code in sem::Function and the Inspector in the process. Fixed: tint:1032 Change-Id: Ia6f2f59e6d2e511c89160b97be990e8b7c9828d9 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59664 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com>
28 lines
747 B
Plaintext
28 lines
747 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
struct tint_symbol {
|
|
float4 value [[position]];
|
|
};
|
|
|
|
void textureNumSamples_a3c8a0(depth2d_ms<float, access::read> tint_symbol_2) {
|
|
int res = int(tint_symbol_2.get_num_samples());
|
|
}
|
|
|
|
vertex tint_symbol vertex_main(depth2d_ms<float, access::read> tint_symbol_3 [[texture(0)]]) {
|
|
textureNumSamples_a3c8a0(tint_symbol_3);
|
|
tint_symbol const tint_symbol_1 = {.value=float4()};
|
|
return tint_symbol_1;
|
|
}
|
|
|
|
fragment void fragment_main(depth2d_ms<float, access::read> tint_symbol_4 [[texture(0)]]) {
|
|
textureNumSamples_a3c8a0(tint_symbol_4);
|
|
return;
|
|
}
|
|
|
|
kernel void compute_main(depth2d_ms<float, access::read> tint_symbol_5 [[texture(0)]]) {
|
|
textureNumSamples_a3c8a0(tint_symbol_5);
|
|
return;
|
|
}
|
|
|