-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
38 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
export MTLLogLevel | ||
@static if Metal.is_macos(v"15.0.0") | ||
export MTLLogLevel | ||
|
||
export MTLLogStateDescriptor | ||
export MTLLogStateDescriptor | ||
|
||
# @objcwrapper immutable = true MTLLogStateDescriptor <: NSObject | ||
# @objcwrapper immutable = true MTLLogStateDescriptor <: NSObject | ||
|
||
function MTLLogStateDescriptor() | ||
handle = @objc [MTLLogStateDescriptor alloc]::id{MTLLogStateDescriptor} | ||
obj = MTLLogStateDescriptor(handle) | ||
@objc [obj::id{MTLLogStateDescriptor} init]::id{MTLLogStateDescriptor} | ||
return obj | ||
end | ||
function MTLLogStateDescriptor() | ||
handle = @objc [MTLLogStateDescriptor alloc]::id{MTLLogStateDescriptor} | ||
obj = MTLLogStateDescriptor(handle) | ||
@objc [obj::id{MTLLogStateDescriptor} init]::id{MTLLogStateDescriptor} | ||
return obj | ||
end | ||
|
||
|
||
export MTLLogState | ||
export MTLLogState | ||
|
||
# @objcwrapper immutable = true MTLLogState <: NSObject | ||
# @objcwrapper immutable = true MTLLogState <: NSObject | ||
|
||
function MTLLogState(dev::MTLDevice, descriptor::MTLLogStateDescriptor) | ||
err = Ref{id{NSError}}(nil) | ||
handle = @objc [dev::id{MTLDevice} newLogStateWithDescriptor:descriptor::id{MTLLogStateDescriptor} | ||
error:err::Ptr{id{NSError}}]::id{MTLLogState} | ||
err[] == nil || throw(NSError(err[])) | ||
MTLLogState(handle) | ||
function MTLLogState(dev::MTLDevice, descriptor::MTLLogStateDescriptor) | ||
err = Ref{id{NSError}}(nil) | ||
handle = @objc [dev::id{MTLDevice} newLogStateWithDescriptor:descriptor::id{MTLLogStateDescriptor} | ||
error:err::Ptr{id{NSError}}]::id{MTLLogState} | ||
err[] == nil || throw(NSError(err[])) | ||
MTLLogState(handle) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters