daily update on 20240104 by nitload youmu, double threading not work
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp.Math
|
||||
{
|
||||
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16)]
|
||||
public struct GLhalfNV
|
||||
{
|
||||
[FieldOffset(0)] public short binary;
|
||||
|
||||
public GLhalfNV(short bin)
|
||||
{
|
||||
binary = bin;
|
||||
}
|
||||
|
||||
public static explicit operator short(GLhalfNV x)
|
||||
{
|
||||
return x.binary;
|
||||
}
|
||||
|
||||
public static explicit operator GLhalfNV(short x)
|
||||
{
|
||||
return new GLhalfNV(x);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user