aboutsummaryrefslogtreecommitdiff
path: root/vendor/darwin/Metal/MetalErrors.odin
blob: 8bc851e3339809047dc1eecf6ddf582951cbd361 (plain)
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
package objc_Metal

import NS "vendor:darwin/Foundation"

foreign import "system:Metal.framework"

CommonCounter          :: ^NS.String
CommonCounterSet       :: ^NS.String
DeviceNotificationName :: ^NS.String
ErrorUserInfoKey       :: ^NS.ErrorUserInfoKey
ErrorDomain            :: ^NS.ErrorDomain

foreign Metal {
	@(linkage="weak") CommonCounterTimestamp:                         CommonCounter
	@(linkage="weak") CommonCounterTessellationInputPatches:          CommonCounter
	@(linkage="weak") CommonCounterVertexInvocations:                 CommonCounter
	@(linkage="weak") CommonCounterPostTessellationVertexInvocations: CommonCounter
	@(linkage="weak") CommonCounterClipperInvocations:                CommonCounter
	@(linkage="weak") CommonCounterClipperPrimitivesOut:              CommonCounter
	@(linkage="weak") CommonCounterFragmentInvocations:               CommonCounter
	@(linkage="weak") CommonCounterFragmentsPassed:                   CommonCounter
	@(linkage="weak") CommonCounterComputeKernelInvocations:          CommonCounter
	@(linkage="weak") CommonCounterTotalCycles:                       CommonCounter
	@(linkage="weak") CommonCounterVertexCycles:                      CommonCounter
	@(linkage="weak") CommonCounterTessellationCycles:                CommonCounter
	@(linkage="weak") CommonCounterPostTessellationVertexCycles:      CommonCounter
	@(linkage="weak") CommonCounterFragmentCycles:                    CommonCounter
	@(linkage="weak") CommonCounterRenderTargetWriteCycles:           CommonCounter
}

foreign Metal {
	@(linkage="weak") CommonCounterSetTimestamp:        CommonCounterSet
	@(linkage="weak") CommonCounterSetStageUtilization: CommonCounterSet
	@(linkage="weak") CommonCounterSetStatistic:        CommonCounterSet
}

foreign Metal {
	@(linkage="weak") DeviceWasAddedNotification:         DeviceNotificationName
	@(linkage="weak") DeviceRemovalRequestedNotification: DeviceNotificationName
	@(linkage="weak") DeviceWasRemovedNotification:       DeviceNotificationName
}

foreign Metal {
	@(linkage="weak") CommandBufferEncoderInfoErrorKey: ErrorUserInfoKey
}

foreign Metal {
	@(linkage="weak") IOErrorDomain: ErrorDomain
}