-
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathNativeContextWriter.cs
More file actions
95 lines (88 loc) · 2.7 KB
/
Copy pathNativeContextWriter.cs
File metadata and controls
95 lines (88 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
using CWUtil = Sentry.Unity.Native.ContextWriterUtils;
namespace Sentry.Unity.Android;
internal class NativeContextWriter : ContextWriter
{
private readonly ISentryJava _sentryJava;
public NativeContextWriter(ISentryJava sentryJava)
{
_sentryJava = sentryJava;
}
protected override void WriteScope(
string? AppStartTime,
string? AppBuildType,
string? OperatingSystemRawDescription,
int? DeviceProcessorCount,
string? DeviceCpuDescription,
string? DeviceTimezone,
bool? DeviceSupportsVibration,
string? DeviceName,
bool? DeviceSimulator,
string? DeviceDeviceUniqueIdentifier,
string? DeviceDeviceType,
string? DeviceModel,
long? DeviceMemorySize,
int? GpuId,
string? GpuName,
string? GpuVendorName,
int? GpuMemorySize,
string? GpuNpotSupport,
string? GpuVersion,
string? GpuApiType,
int? GpuMaxTextureSize,
bool? GpuSupportsDrawCallInstancing,
bool? GpuSupportsRayTracing,
bool? GpuSupportsComputeShaders,
bool? GpuSupportsGeometryShaders,
string? GpuVendorId,
bool? GpuMultiThreadedRendering,
string? GpuGraphicsShaderLevel,
string? EditorVersion,
string? UnityInstallMode,
string? UnityTargetFrameRate,
string? UnityCopyTextureSupport,
string? UnityRenderingThreadingMode
)
{
_sentryJava.WriteScope(
AppStartTime,
AppBuildType,
GpuId,
GpuName,
GpuVendorName,
GpuMemorySize,
GpuNpotSupport,
GpuVersion,
GpuApiType,
GpuMaxTextureSize,
GpuSupportsDrawCallInstancing,
GpuSupportsRayTracing,
GpuSupportsComputeShaders,
GpuSupportsGeometryShaders,
GpuVendorId,
GpuMultiThreadedRendering,
GpuGraphicsShaderLevel);
CWUtil.WriteApp(AppStartTime, AppBuildType);
CWUtil.WriteGpu(
GpuId,
GpuName,
GpuVendorName,
GpuMemorySize,
GpuNpotSupport,
GpuVersion,
GpuApiType,
GpuMaxTextureSize,
GpuSupportsDrawCallInstancing,
GpuSupportsRayTracing,
GpuSupportsComputeShaders,
GpuSupportsGeometryShaders,
GpuVendorId,
GpuMultiThreadedRendering,
GpuGraphicsShaderLevel);
CWUtil.WriteUnity(
EditorVersion,
UnityInstallMode,
UnityTargetFrameRate,
UnityCopyTextureSupport,
UnityRenderingThreadingMode);
}
}