Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ryujinx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ryubing
Ryujinx
Commits
c73b5bdf
Commit
c73b5bdf
authored
2 months ago
by
Evan Husted
Browse files
Options
Downloads
Patches
Plain Diff
metal: wip: allow getting/setting developerHUDProperies
parent
9754d247
No related branches found
Branches containing commit
Tags
Canary-1.2.89
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Ryujinx.Graphics.Metal.SharpMetalExtensions/CAMetalLayerExtensions.cs
+10
-1
10 additions, 1 deletion
...hics.Metal.SharpMetalExtensions/CAMetalLayerExtensions.cs
with
10 additions
and
1 deletion
src/Ryujinx.Graphics.Metal.SharpMetalExtensions/CAMetalLayerExtensions.cs
+
10
−
1
View file @
c73b5bdf
...
...
@@ -6,16 +6,25 @@ using System.Runtime.Versioning;
namespace
Ryujinx.Graphics.Metal.SharpMetalExtensions
{
[
SupportedOSPlatform
(
"OS
X
"
)]
[
SupportedOSPlatform
(
"
mac
OS"
)]
public
static
class
CAMetalLayerExtensions
{
private
static
readonly
Selector
sel_displaySyncEnabled
=
"displaySyncEnabled"
;
private
static
readonly
Selector
sel_setDisplaySyncEnabled
=
"setDisplaySyncEnabled:"
;
private
static
readonly
Selector
sel_developerHUDProperties
=
"developerHUDProperties"
;
private
static
readonly
Selector
sel_setDeveloperHUDProperties
=
"setDeveloperHUDProperties:"
;
public
static
bool
IsDisplaySyncEnabled
(
this
CAMetalLayer
metalLayer
)
=>
ObjectiveCRuntime
.
bool_objc_msgSend
(
metalLayer
.
NativePtr
,
sel_displaySyncEnabled
);
public
static
void
SetDisplaySyncEnabled
(
this
CAMetalLayer
metalLayer
,
bool
enabled
)
=>
ObjectiveCRuntime
.
objc_msgSend
(
metalLayer
.
NativePtr
,
sel_setDisplaySyncEnabled
,
enabled
);
public
static
nint
GetDeveloperHudProperties
(
this
CAMetalLayer
metalLayer
)
=>
ObjectiveCRuntime
.
IntPtr_objc_msgSend
(
metalLayer
.
NativePtr
,
sel_developerHUDProperties
);
public
static
void
SetDeveloperHudProperties
(
this
CAMetalLayer
metalLayer
,
nint
dictionaryPointer
)
=>
ObjectiveCRuntime
.
objc_msgSend
(
metalLayer
.
NativePtr
,
sel_setDisplaySyncEnabled
,
dictionaryPointer
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment