deprecated/access_deco/storage_buffer.wgsl:7:26 warning: use of deprecated language feature: declare access with var<storage, read_write> instead of using [[access]] decoration | |
[[group(0), binding(0)]] var<storage> sb : [[access(read_write)]] SB; | |
^^^ | |
#include <metal_stdlib> | |
using namespace metal; | |
struct SB { | |
/* 0x0000 */ float a; | |
}; | |
kernel void tint_symbol(device SB& sb [[buffer(0)]]) { | |
float x = sb.a; | |
return; | |
} | |