df3e21a762
Just treat any undefined argument as 0. It is risky to use the undefined variable as it might not lower to a true constant.
18 lines
305 B
Plaintext
18 lines
305 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct Block
|
|
{
|
|
float4 f;
|
|
};
|
|
|
|
constant float _15 = {};
|
|
|
|
kernel void main0(device Block& block [[buffer(0)]])
|
|
{
|
|
block.f = float4(0.100000001490116119384765625, 0.20000000298023223876953125, 0.300000011920928955078125, 0.0);
|
|
}
|
|
|