Skip to content

Commit d18dfd0

Browse files
tgymnichchristiangnrd
authored andcommitted
use wrappers
1 parent f2f3f3c commit d18dfd0

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

lib/mtl/command_queue.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
export MTLCommandQueueDescriptor
22

3-
@objcwrapper immutable=false MTLCommandQueueDescriptor <: NSObject
4-
5-
@objcproperties MTLCommandQueueDescriptor begin
6-
@autoproperty maxCommandBufferCount::NSUInteger
7-
@autoproperty logState::id{MTLLogState} setter=setLogState
8-
end
3+
# @objcwrapper immutable=false MTLCommandQueueDescriptor <: NSObject
94

105
function MTLCommandQueueDescriptor()
116
handle = @objc [MTLCommandQueueDescriptor alloc]::id{MTLCommandQueueDescriptor}

lib/mtl/log_state.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ export MTLLogLevel
22

33
export MTLLogStateDescriptor
44

5-
@objcwrapper immutable=false MTLLogStateDescriptor <: NSObject
6-
7-
@objcproperties MTLLogStateDescriptor begin
8-
@autoproperty level::MTLLogLevel setter=setLevel
9-
@autoproperty bufferSize::NSInteger setter=setBufferSize
10-
end
5+
# @objcwrapper immutable = true MTLLogStateDescriptor <: NSObject
116

127
function MTLLogStateDescriptor()
138
handle = @objc [MTLLogStateDescriptor alloc]::id{MTLLogStateDescriptor}
@@ -20,7 +15,7 @@ end
2015

2116
export MTLLogState
2217

23-
@objcwrapper MTLLogState <: NSObject
18+
# @objcwrapper immutable = true MTLLogState <: NSObject
2419

2520
function MTLLogState(dev::MTLDevice, descriptor::MTLLogStateDescriptor)
2621
err = Ref{id{NSError}}(nil)

0 commit comments

Comments
 (0)