Mtankan'Omogolo
Platinian
I have checked and searched for these kind of questions, but I have not found a clear answer.
This is the method I am trying to hook, and I need help to help return GraphicsDeviceType Vulkan (which has a value of 21):
// RVA: 0x48E4600 Offset: 0x48E3600 VA: 0x48E4600
private static GraphicsDeviceType GetGraphicsDeviceType() { }
// Namespace: UnityEngine.Rendering
public enum GraphicsDeviceType // TypeDefIndex: 16973
{
// Fields
public int value__; // 0x0
public const GraphicsDeviceType OpenGL2 = 0;
public const GraphicsDeviceType Direct3D9 = 1;
public const GraphicsDeviceType Direct3D11 = 2;
public const GraphicsDeviceType PlayStation3 = 3;
public const GraphicsDeviceType Null = 4;
public const GraphicsDeviceType Xbox360 = 6;
public const GraphicsDeviceType OpenGLES2 = 8;
public const GraphicsDeviceType OpenGLES3 = 11;
public const GraphicsDeviceType PlayStationVita = 12;
public const GraphicsDeviceType PlayStation4 = 13;
public const GraphicsDeviceType XboxOne = 14;
public const GraphicsDeviceType PlayStationMobile = 15;
public const GraphicsDeviceType Metal = 16;
public const GraphicsDeviceType OpenGLCore = 17;
public const GraphicsDeviceType Direct3D12 = 18;
public const GraphicsDeviceType N3DS = 19;
public const GraphicsDeviceType Vulkan= 21;
public const GraphicsDeviceType Switch = 22;
public const GraphicsDeviceType XboxOneD3D12 = 23;
public const GraphicsDeviceType GameCoreXboxOne = 24;
public const GraphicsDeviceType GameCoreScarlett = -1;
public const GraphicsDeviceType GameCoreXboxSeries = 25;
public const GraphicsDeviceType PlayStation5 = 26;
public const GraphicsDeviceType PlayStation5NGGC = 27;
}
If you are experienced, please help!
This is the method I am trying to hook, and I need help to help return GraphicsDeviceType Vulkan (which has a value of 21):
// RVA: 0x48E4600 Offset: 0x48E3600 VA: 0x48E4600
private static GraphicsDeviceType GetGraphicsDeviceType() { }
// Namespace: UnityEngine.Rendering
public enum GraphicsDeviceType // TypeDefIndex: 16973
{
// Fields
public int value__; // 0x0
public const GraphicsDeviceType OpenGL2 = 0;
public const GraphicsDeviceType Direct3D9 = 1;
public const GraphicsDeviceType Direct3D11 = 2;
public const GraphicsDeviceType PlayStation3 = 3;
public const GraphicsDeviceType Null = 4;
public const GraphicsDeviceType Xbox360 = 6;
public const GraphicsDeviceType OpenGLES2 = 8;
public const GraphicsDeviceType OpenGLES3 = 11;
public const GraphicsDeviceType PlayStationVita = 12;
public const GraphicsDeviceType PlayStation4 = 13;
public const GraphicsDeviceType XboxOne = 14;
public const GraphicsDeviceType PlayStationMobile = 15;
public const GraphicsDeviceType Metal = 16;
public const GraphicsDeviceType OpenGLCore = 17;
public const GraphicsDeviceType Direct3D12 = 18;
public const GraphicsDeviceType N3DS = 19;
public const GraphicsDeviceType Vulkan= 21;
public const GraphicsDeviceType Switch = 22;
public const GraphicsDeviceType XboxOneD3D12 = 23;
public const GraphicsDeviceType GameCoreXboxOne = 24;
public const GraphicsDeviceType GameCoreScarlett = -1;
public const GraphicsDeviceType GameCoreXboxSeries = 25;
public const GraphicsDeviceType PlayStation5 = 26;
public const GraphicsDeviceType PlayStation5NGGC = 27;
}
If you are experienced, please help!