Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/Valve/VR/RenderModel_TextureMap_t_Packed.cs
2026-02-21 16:45:37 +08:00

30 lines
646 B
C#

using System;
using System.Runtime.InteropServices;
namespace Valve.VR
{
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct RenderModel_TextureMap_t_Packed
{
public char unWidth;
public char unHeight;
public IntPtr rubTextureMapData;
public RenderModel_TextureMap_t_Packed(RenderModel_TextureMap_t unpacked)
{
unWidth = unpacked.unWidth;
unHeight = unpacked.unHeight;
rubTextureMapData = unpacked.rubTextureMapData;
}
public void Unpack(ref RenderModel_TextureMap_t unpacked)
{
unpacked.unWidth = unWidth;
unpacked.unHeight = unHeight;
unpacked.rubTextureMapData = rubTextureMapData;
}
}
}