SPIRV-Cross/reference/shaders-msl-no-opt/asm/comp/arithmetic-conversion-signs.asm.comp
2019-09-24 14:35:25 -04:00

43 lines
852 B
Plaintext

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct SSBO
{
int s32;
uint u32;
short s16;
ushort u16;
float f32;
};
kernel void main0(device SSBO& _4 [[buffer(0)]])
{
int _29 = _4.s32;
uint _30 = _4.u32;
short _31 = _4.s16;
ushort _32 = _4.u16;
float _33 = _4.f32;
_4.s32 = int(_31);
_4.u32 = uint(_31);
_4.s32 = int(short(_32));
_4.u32 = uint(short(_32));
_4.u32 = uint(ushort(_31));
_4.u32 = uint(_32);
_4.s16 = short(_29);
_4.u16 = ushort(_29);
_4.s16 = short(_30);
_4.u16 = ushort(_30);
_4.u16 = ushort(_29);
_4.u16 = ushort(_30);
_4.f32 = float(_31);
_4.f32 = float(short(_32));
_4.f32 = float(ushort(_31));
_4.f32 = float(_32);
_4.s16 = short(_33);
_4.u16 = ushort(short(_33));
_4.u16 = ushort(_33);
}