-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
1 parent
c3ff68b
commit 2fc8123
Showing
10 changed files
with
141 additions
and
0 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
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
9 changes: 9 additions & 0 deletions
9
Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/fence.cpp
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "fence_functions.h" | ||
|
||
#include <kope/graphics5/fence.h> | ||
|
||
#include <kinc/backend/SystemMicrosoft.h> | ||
|
||
void kope_d3d12_fence_destroy(kope_g5_fence *fence) { | ||
fence->d3d12.fence->Release(); | ||
} |
16 changes: 16 additions & 0 deletions
16
Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/fence_functions.h
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef KOPE_D3D12_FENCE_FUNCTIONS_HEADER | ||
#define KOPE_D3D12_FENCE_FUNCTIONS_HEADER | ||
|
||
#include <kope/graphics5/fence.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
void kope_d3d12_fence_destroy(kope_g5_fence *fence); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
20 changes: 20 additions & 0 deletions
20
Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/fence_structs.h
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef KOPE_D3D12_FENCE_STRUCTS_HEADER | ||
#define KOPE_D3D12_FENCE_STRUCTS_HEADER | ||
|
||
#include <kope/graphics5/buffer.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
struct ID3D12Fence; | ||
|
||
typedef struct kope_d3d12_fence { | ||
struct ID3D12Fence *fence; | ||
} kope_d3d12_fence; | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "fence.h" | ||
|
||
#ifdef KOPE_DIRECT3D12 | ||
#include <kope/direct3d12/fence_functions.h> | ||
#endif | ||
|
||
void kope_g5_fence_destroy(kope_g5_fence *fence) { | ||
KOPE_G5_CALL1(fence_destroy, fence); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef KOPE_G5_FENCE_HEADER | ||
#define KOPE_G5_FENCE_HEADER | ||
|
||
#include <kope/global.h> | ||
|
||
#include "api.h" | ||
|
||
#ifdef KOPE_DIRECT3D12 | ||
#include <kope/direct3d12/fence_structs.h> | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef struct kope_g5_fence { | ||
KOPE_G5_IMPL(fence); | ||
} kope_g5_fence; | ||
|
||
KOPE_FUNC void kope_g5_fence_destroy(kope_g5_fence *fence); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |