third_party/spirv-cross/reference/shaders-msl-no-opt/asm/comp/bitcast-fp16-fp32.asm.comp
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | struct SSBO |
| 7 | { |
| 8 | half2 a; |
| 9 | float b; |
| 10 | float c; |
| 11 | half2 d; |
| 12 | }; |
| 13 | |
| 14 | constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u); |
| 15 | |
| 16 | kernel void main0(device SSBO& _4 [[buffer(0)]]) |
| 17 | { |
| 18 | _4.b = as_type<float>(_4.a); |
| 19 | _4.d = as_type<half2>(_4.c); |
| 20 | } |
| 21 |