Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
fbe6b0bf
Commit
fbe6b0bf
authored
Feb 17, 2021
by
Nikolay Igotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap more.
parent
e44b2920
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
build.gradle.kts
skiko/build.gradle.kts
+0
-1
directXRedrawer.cc
skiko/src/jvmMain/cpp/windows/directXRedrawer.cc
+42
-0
No files found.
skiko/build.gradle.kts
View file @
fbe6b0bf
...
@@ -382,7 +382,6 @@ tasks.withType(LinkSharedLibrary::class.java).configureEach {
...
@@ -382,7 +382,6 @@ tasks.withType(LinkSharedLibrary::class.java).configureEach {
"opengl32.lib"
,
"opengl32.lib"
,
"shcore.lib"
,
"shcore.lib"
,
"user32.lib"
,
"user32.lib"
,
"dxgi.lib"
,
"d3dcompiler.lib"
"d3dcompiler.lib"
)
)
)
)
...
...
skiko/src/jvmMain/cpp/windows/directXRedrawer.cc
View file @
fbe6b0bf
...
@@ -97,6 +97,48 @@ HRESULT D3D12SerializeRootSignature(
...
@@ -97,6 +97,48 @@ HRESULT D3D12SerializeRootSignature(
return
impl
(
pRootSignature
,
Version
,
ppBlob
,
ppErrorBlob
);
return
impl
(
pRootSignature
,
Version
,
ppBlob
,
ppErrorBlob
);
}
}
HRESULT
CreateDXGIFactory1
(
REFIID
riid
,
void
**
ppFactory
)
{
typedef
HRESULT
(
*
CreateDXGIFactory1_t
)(
REFIID
riid
,
void
**
ppFactory
);
static
CreateDXGIFactory1_t
impl
=
nullptr
;
if
(
!
impl
)
{
auto
dxgidll
=
LoadLibrary
(
TEXT
(
"Dxgi.dll"
));
if
(
!
dxgidll
)
return
E_NOTIMPL
;
impl
=
(
CreateDXGIFactory1_t
)
GetProcAddress
(
dxgidll
,
"CreateDXGIFactory1"
);
if
(
!
impl
)
return
E_NOTIMPL
;
}
return
impl
(
riid
,
ppFactory
);
}
HRESULT
CreateDXGIFactory2
(
UINT
Flags
,
REFIID
riid
,
void
**
ppFactory
)
{
typedef
HRESULT
(
*
CreateDXGIFactory2_t
)(
UINT
Flags
,
REFIID
riid
,
void
**
ppFactory
);
static
CreateDXGIFactory2_t
impl
=
nullptr
;
if
(
!
impl
)
{
auto
dxgidll
=
LoadLibrary
(
TEXT
(
"Dxgi.dll"
));
if
(
!
dxgidll
)
return
E_NOTIMPL
;
impl
=
(
CreateDXGIFactory2_t
)
GetProcAddress
(
dxgidll
,
"CreateDXGIFactory2"
);
if
(
!
impl
)
return
E_NOTIMPL
;
}
return
impl
(
Flags
,
riid
,
ppFactory
);
}
JNIEXPORT
jlong
JNICALL
Java_org_jetbrains_skiko_redrawer_Direct3DRedrawer_makeDirectXContext
(
JNIEXPORT
jlong
JNICALL
Java_org_jetbrains_skiko_redrawer_Direct3DRedrawer_makeDirectXContext
(
JNIEnv
*
env
,
jobject
redrawer
,
jlong
devicePtr
)
JNIEnv
*
env
,
jobject
redrawer
,
jlong
devicePtr
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment